Fix more incorrect uses of `is` operator.

pull/52144/head
Matt Clay 7 years ago
parent 46fbcf08bc
commit 04112d47a7

@ -69,7 +69,7 @@ class Cliconf(CliconfBase):
raise ValueError("fetching configuration from %s is not supported" % source)
cmd = 'show %s ' % lookup[source]
if format and format is not 'text':
if format and format != 'text':
cmd += '| %s ' % format
cmd += ' '.join(to_list(flags))

@ -147,7 +147,7 @@ class Cliconf(CliconfBase):
raise ValueError("fetching configuration from %s is not supported" % source)
cmd = 'show {0} '.format(lookup[source])
if format and format is not 'text':
if format and format != 'text':
cmd += '| %s ' % format
if flags:

Loading…
Cancel
Save