Przeglądaj źródła

Fix broken oc_secret update function

Rastislav Barlik 7 lat temu
rodzic
commit
748875e210

+ 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