From 39d0d18283ef47a73072588b3601290a8312ccd0 Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Mon, 4 Apr 2016 12:50:57 -0400 Subject: Fixed oc_edit by requiring name and content --- roles/lib_openshift_api/build/ansible/edit.py | 5 +++-- roles/lib_openshift_api/library/oc_edit.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'roles/lib_openshift_api') 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, -- cgit v1.2.3