diff options
author | ewolinetz <ewolinet@redhat.com> | 2017-05-05 18:53:49 -0500 |
---|---|---|
committer | ewolinetz <ewolinet@redhat.com> | 2017-05-08 14:17:45 -0500 |
commit | 9bee74c5c8faa140265024628dd77fbf465d07fa (patch) | |
tree | 6a69c124e815da91f461b89f0c13800fc41836b8 /roles/lib_openshift/src | |
parent | bc5eb65f9bcd4147130e062ef2e4499145811c90 (diff) | |
download | openshift-9bee74c5c8faa140265024628dd77fbf465d07fa.tar.gz openshift-9bee74c5c8faa140265024628dd77fbf465d07fa.tar.bz2 openshift-9bee74c5c8faa140265024628dd77fbf465d07fa.tar.xz openshift-9bee74c5c8faa140265024628dd77fbf465d07fa.zip |
Updating oc_obj to use get instead of getattr
Diffstat (limited to 'roles/lib_openshift/src')
-rw-r--r-- | roles/lib_openshift/src/class/oc_obj.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_openshift/src/class/oc_obj.py b/roles/lib_openshift/src/class/oc_obj.py index 89ee2f5a0..6f0da3d5c 100644 --- a/roles/lib_openshift/src/class/oc_obj.py +++ b/roles/lib_openshift/src/class/oc_obj.py @@ -117,7 +117,7 @@ class OCObject(OpenShiftCLI): if state == 'absent': # verify its not in our results if (params['name'] is not None or params['selector'] is not None) and \ - (len(api_rval['results']) == 0 or len(api_rval['results'][0].getattr('items', [])) == 0): + (len(api_rval['results']) == 0 or len(api_rval['results'][0].get('items', [])) == 0): return {'changed': False, 'state': state} if check_mode: |