瀏覽代碼

Fix broken oc_secret update function

Rastislav Barlik 7 年之前
父節點
當前提交
748875e210
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      roles/lib_openshift/library/oc_secret.py
  2. 1 1
      roles/lib_openshift/src/class/oc_secret.py

+ 1 - 1
roles/lib_openshift/library/oc_secret.py

@@ -1633,7 +1633,7 @@ class OCSecret(OpenShiftCLI):
            This receives a list of file names and converts it into a secret.
            The secret is then written to disk and passed into the `oc replace` command.
         '''
-        secret = self.prep_secret(files, force)
+        secret = self.prep_secret(files, force=force)
         if secret['returncode'] != 0:
             return secret
 

+ 1 - 1
roles/lib_openshift/src/class/oc_secret.py

@@ -67,7 +67,7 @@ class OCSecret(OpenShiftCLI):
            This receives a list of file names and converts it into a secret.
            The secret is then written to disk and passed into the `oc replace` command.
         '''
-        secret = self.prep_secret(files, force)
+        secret = self.prep_secret(files, force=force)
         if secret['returncode'] != 0:
             return secret