Browse Source

Replacing -v with -p for template parameters in oc_process

-v flag was removed completely, now only -p works.
Anton Sherkhonov 7 năm trước cách đây
mục cha
commit
66fec8988a
30 tập tin đã thay đổi với 30 bổ sung30 xóa
  1. 1 1
      roles/lib_openshift/library/oc_adm_ca_server_cert.py
  2. 1 1
      roles/lib_openshift/library/oc_adm_csr.py
  3. 1 1
      roles/lib_openshift/library/oc_adm_manage_node.py
  4. 1 1
      roles/lib_openshift/library/oc_adm_policy_group.py
  5. 1 1
      roles/lib_openshift/library/oc_adm_policy_user.py
  6. 1 1
      roles/lib_openshift/library/oc_adm_registry.py
  7. 1 1
      roles/lib_openshift/library/oc_adm_router.py
  8. 1 1
      roles/lib_openshift/library/oc_clusterrole.py
  9. 1 1
      roles/lib_openshift/library/oc_configmap.py
  10. 1 1
      roles/lib_openshift/library/oc_edit.py
  11. 1 1
      roles/lib_openshift/library/oc_env.py
  12. 1 1
      roles/lib_openshift/library/oc_group.py
  13. 1 1
      roles/lib_openshift/library/oc_image.py
  14. 1 1
      roles/lib_openshift/library/oc_label.py
  15. 1 1
      roles/lib_openshift/library/oc_obj.py
  16. 1 1
      roles/lib_openshift/library/oc_objectvalidator.py
  17. 1 1
      roles/lib_openshift/library/oc_process.py
  18. 1 1
      roles/lib_openshift/library/oc_project.py
  19. 1 1
      roles/lib_openshift/library/oc_pvc.py
  20. 1 1
      roles/lib_openshift/library/oc_route.py
  21. 1 1
      roles/lib_openshift/library/oc_scale.py
  22. 1 1
      roles/lib_openshift/library/oc_secret.py
  23. 1 1
      roles/lib_openshift/library/oc_service.py
  24. 1 1
      roles/lib_openshift/library/oc_serviceaccount.py
  25. 1 1
      roles/lib_openshift/library/oc_serviceaccount_secret.py
  26. 1 1
      roles/lib_openshift/library/oc_storageclass.py
  27. 1 1
      roles/lib_openshift/library/oc_user.py
  28. 1 1
      roles/lib_openshift/library/oc_version.py
  29. 1 1
      roles/lib_openshift/library/oc_volume.py
  30. 1 1
      roles/lib_openshift/src/lib/base.py

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

@@ -1000,7 +1000,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -978,7 +978,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -986,7 +986,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -972,7 +972,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -986,7 +986,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -1090,7 +1090,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -1115,7 +1115,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -964,7 +964,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -970,7 +970,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -1020,7 +1020,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -981,7 +981,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -954,7 +954,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -973,7 +973,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -990,7 +990,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -999,7 +999,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -925,7 +925,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -982,7 +982,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -979,7 +979,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -986,7 +986,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -1030,7 +1030,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -968,7 +968,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -1026,7 +1026,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -1033,7 +1033,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -966,7 +966,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -966,7 +966,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -984,7 +984,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -1026,7 +1026,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -938,7 +938,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

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

@@ -1015,7 +1015,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)

+ 1 - 1
roles/lib_openshift/src/lib/base.py

@@ -140,7 +140,7 @@ class OpenShiftCLI(object):
             cmd.append(template_name)
         if params:
             param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
-            cmd.append('-v')
+            cmd.append('-p')
             cmd.extend(param_str)
 
         results = self.openshift_cmd(cmd, output=True, input_data=template_data)