diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-02-16 16:53:14 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-02-16 16:53:14 -0500 |
commit | c4e712ba3cc40d1deed87f56c71b337193597422 (patch) | |
tree | 99b0531dbf294253771cb0ec6c313e569640ba70 /roles/lib_openshift/src/lib/base.py | |
parent | d4db2dd279916c2a1f73c236deed444fed5cc740 (diff) | |
download | openshift-c4e712ba3cc40d1deed87f56c71b337193597422.tar.gz openshift-c4e712ba3cc40d1deed87f56c71b337193597422.tar.bz2 openshift-c4e712ba3cc40d1deed87f56c71b337193597422.tar.xz openshift-c4e712ba3cc40d1deed87f56c71b337193597422.zip |
Pleasing the linting gods.
Diffstat (limited to 'roles/lib_openshift/src/lib/base.py')
-rw-r--r-- | roles/lib_openshift/src/lib/base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/lib_openshift/src/lib/base.py b/roles/lib_openshift/src/lib/base.py index 0b37862c9..7d4775229 100644 --- a/roles/lib_openshift/src/lib/base.py +++ b/roles/lib_openshift/src/lib/base.py @@ -295,10 +295,12 @@ class Utils(object): tmp = Utils.create_tmpfile(prefix=rname) if ftype == 'yaml': + # pylint: disable=no-member if hasattr(yaml, 'RoundTripDumper'): Utils._write(tmp, yaml.dump(data, Dumper=yaml.RoundTripDumper)) else: Utils._write(tmp, yaml.safe_dump(data, default_flow_style=False)) + elif ftype == 'json': Utils._write(tmp, json.dumps(data)) else: @@ -380,6 +382,7 @@ class Utils(object): contents = sfd.read() if sfile_type == 'yaml': + # pylint: disable=no-member if hasattr(yaml, 'RoundTripLoader'): contents = yaml.load(contents, yaml.RoundTripLoader) else: |