summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-02-01 12:25:59 -0500
committerKenny Woodson <kwoodson@redhat.com>2017-02-09 09:41:36 -0500
commit63b7227d33933df83cb33a5b1a20270fa487b58d (patch)
treefa2adb5aae3a42676d0b103070813be08d90b2f5 /roles/lib_openshift/src
parent486ac1556b93ab7e7ef91b273659f7847bbd704d (diff)
downloadopenshift-63b7227d33933df83cb33a5b1a20270fa487b58d.tar.gz
openshift-63b7227d33933df83cb33a5b1a20270fa487b58d.tar.bz2
openshift-63b7227d33933df83cb33a5b1a20270fa487b58d.tar.xz
openshift-63b7227d33933df83cb33a5b1a20270fa487b58d.zip
Fixing docs.
Diffstat (limited to 'roles/lib_openshift/src')
-rw-r--r--roles/lib_openshift/src/class/oc_process.py8
-rw-r--r--roles/lib_openshift/src/doc/process11
2 files changed, 11 insertions, 8 deletions
diff --git a/roles/lib_openshift/src/class/oc_process.py b/roles/lib_openshift/src/class/oc_process.py
index 7cc8ff082..d8e5015ed 100644
--- a/roles/lib_openshift/src/class/oc_process.py
+++ b/roles/lib_openshift/src/class/oc_process.py
@@ -1,4 +1,6 @@
# pylint: skip-file
+# flake8: noqa
+
# pylint: disable=too-many-instance-attributes
class Process(OpenShiftCLI):
@@ -150,7 +152,6 @@ class Process(OpenShiftCLI):
# the template's existence with the existence of the objects
# it describes?
-
# Create it here
api_rval = ocprocess.process()
if api_rval['returncode'] != 0:
@@ -179,4 +180,7 @@ class Process(OpenShiftCLI):
return {"changed": update, "results": rval, "state": "present"}
- return {"failed": True, "changed": False, "results": 'Unknown state passed ({0}). '.format(state), "state": "unknown")
+ return {"failed": True,
+ "changed": False,
+ "results": 'Unknown state passed ({0}). '.format(state),
+ "state": "unknown")
diff --git a/roles/lib_openshift/src/doc/process b/roles/lib_openshift/src/doc/process
index 46986f8de..2322bf49c 100644
--- a/roles/lib_openshift/src/doc/process
+++ b/roles/lib_openshift/src/doc/process
@@ -11,7 +11,6 @@ options:
state:
description:
- Currently present is only supported state.
- required: true
default: present
choices: ["present", "absent", "list"]
aliases: []
@@ -29,19 +28,19 @@ options:
aliases: []
template_name:
description:
- - Name of the template that is being processed.
+ - Name of the openshift template that is being processed.
required: false
default: None
aliases: []
namespace:
description:
- - The namespace where the object lives.
+ - The namespace where the template lives.
required: false
- default: str
+ default: default
aliases: []
content:
description:
- - Template content to be processed.
+ - Template content that will be processed.
required: false
default: None
aliases: []
@@ -60,13 +59,13 @@ options:
reconcile:
description:
- Whether or not to attempt to determine if there are updates or changes in the incoming template.
- required: false
default: true
aliases: []
author:
- "Kenny Woodson <kwoodson@redhat.com>"
extends_documentation_fragment: []
'''
+
EXAMPLES = '''
- name: process the cloud volume provisioner template with variables
oc_process: