From 4806fe365e11a9a0266c06d052537836397a26c6 Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Tue, 31 Jan 2017 09:36:23 -0500 Subject: Fixing doc and generating new label with updated base. --- roles/lib_openshift/src/ansible/oc_label.py | 2 +- roles/lib_openshift/src/doc/label | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'roles/lib_openshift/src') diff --git a/roles/lib_openshift/src/ansible/oc_label.py b/roles/lib_openshift/src/ansible/oc_label.py index 53632678b..149b965d8 100644 --- a/roles/lib_openshift/src/ansible/oc_label.py +++ b/roles/lib_openshift/src/ansible/oc_label.py @@ -11,7 +11,7 @@ def main(): choices=['present', 'absent', 'list', 'add']), debug=dict(default=False, type='bool'), kind=dict(default=None, type='str', required=True, - choices=['node', 'pod']), + choices=['node', 'pod', 'namespace']), name=dict(default=None, type='str'), namespace=dict(default=None, type='str'), labels=dict(default=None, type='list'), diff --git a/roles/lib_openshift/src/doc/label b/roles/lib_openshift/src/doc/label index 8122bd4b0..1274d58c1 100644 --- a/roles/lib_openshift/src/doc/label +++ b/roles/lib_openshift/src/doc/label @@ -4,7 +4,7 @@ DOCUMENTATION = ''' --- module: oc_label -short_description: Create, modify, and idempotently manage openshift object labels. +short_description: Create, modify, and idempotently manage openshift labels. description: - Modify openshift labels programmatically. options: @@ -30,21 +30,22 @@ options: kind: description: - The kind of object that can be managed. - required: false + required: True default: None choices: - node - pod + - namespace aliases: [] labels: description: - - The labels to add to the resource. + - A list of labels to for the resource. required: false default: None aliases: [] selector: description: - - The selector to apply to the query + - The selector to apply to the resource query required: false default: None aliases: [] -- cgit v1.2.3