diff options
Diffstat (limited to 'roles/lib_openshift_api')
-rw-r--r-- | roles/lib_openshift_api/build/ansible/edit.py | 5 | ||||
-rw-r--r-- | roles/lib_openshift_api/library/oc_edit.py | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/roles/lib_openshift_api/build/ansible/edit.py b/roles/lib_openshift_api/build/ansible/edit.py index d48bc7a01..275789298 100644 --- a/roles/lib_openshift_api/build/ansible/edit.py +++ b/roles/lib_openshift_api/build/ansible/edit.py @@ -12,16 +12,17 @@ def main(): choices=['present']), debug=dict(default=False, type='bool'), namespace=dict(default='default', type='str'), - name=dict(default=None, type='str'), + name=dict(default=None, required=True, type='str'), kind=dict(required=True, type='str', choices=['dc', 'deploymentconfig', 'svc', 'service', + 'scc', 'securitycontextconstraints', 'secret', ]), file_name=dict(default=None, type='str'), file_format=dict(default='yaml', type='str'), - content=dict(default=None, type='dict'), + content=dict(default=None, required=True, type='dict'), force=dict(default=False, type='bool'), ), supports_check_mode=True, diff --git a/roles/lib_openshift_api/library/oc_edit.py b/roles/lib_openshift_api/library/oc_edit.py index 0135dba63..1e2a41077 100644 --- a/roles/lib_openshift_api/library/oc_edit.py +++ b/roles/lib_openshift_api/library/oc_edit.py @@ -539,16 +539,17 @@ def main(): choices=['present']), debug=dict(default=False, type='bool'), namespace=dict(default='default', type='str'), - name=dict(default=None, type='str'), + name=dict(default=None, required=True, type='str'), kind=dict(required=True, type='str', choices=['dc', 'deploymentconfig', 'svc', 'service', + 'scc', 'securitycontextconstraints', 'secret', ]), file_name=dict(default=None, type='str'), file_format=dict(default='yaml', type='str'), - content=dict(default=None, type='dict'), + content=dict(default=None, required=True, type='dict'), force=dict(default=False, type='bool'), ), supports_check_mode=True, |