mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix more incorrect uses of is operator.
This commit is contained in:
@@ -69,7 +69,7 @@ class Cliconf(CliconfBase):
|
|||||||
raise ValueError("fetching configuration from %s is not supported" % source)
|
raise ValueError("fetching configuration from %s is not supported" % source)
|
||||||
|
|
||||||
cmd = 'show %s ' % lookup[source]
|
cmd = 'show %s ' % lookup[source]
|
||||||
if format and format is not 'text':
|
if format and format != 'text':
|
||||||
cmd += '| %s ' % format
|
cmd += '| %s ' % format
|
||||||
|
|
||||||
cmd += ' '.join(to_list(flags))
|
cmd += ' '.join(to_list(flags))
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ class Cliconf(CliconfBase):
|
|||||||
raise ValueError("fetching configuration from %s is not supported" % source)
|
raise ValueError("fetching configuration from %s is not supported" % source)
|
||||||
|
|
||||||
cmd = 'show {0} '.format(lookup[source])
|
cmd = 'show {0} '.format(lookup[source])
|
||||||
if format and format is not 'text':
|
if format and format != 'text':
|
||||||
cmd += '| %s ' % format
|
cmd += '| %s ' % format
|
||||||
|
|
||||||
if flags:
|
if flags:
|
||||||
|
|||||||
Reference in New Issue
Block a user