mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #44965 from gtmanfred/2016.11
check if VALUE is a string_type
This commit is contained in:
commit
3ab962b01a
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ def _get_extra_options(**kwargs):
|
|||
ret = []
|
||||
kwargs = salt.utils.clean_kwargs(**kwargs)
|
||||
for key, value in six.iteritems(kwargs):
|
||||
if isinstance(key, six.string_types):
|
||||
if isinstance(value, six.string_types):
|
||||
ret.append('--{0}=\'{1}\''.format(key, value))
|
||||
elif value is True:
|
||||
ret.append('--{0}'.format(key))
|
||||
|
|
Loading…
Add table
Reference in a new issue