소스 검색

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