mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fix multiple spaces on entry options start
This commit is contained in:
parent
361205d6c5
commit
f5dbab21ca
@ -204,7 +204,7 @@ def present(name, entry=None, family='ipv4', **kwargs):
|
||||
entry_opts = 'timeout {0} {1}'.format(kwargs['timeout'], entry_opts)
|
||||
if 'comment' in kwargs and 'comment' not in entry_opts:
|
||||
entry_opts = '{0} comment "{1}"'.format(entry_opts, kwargs['comment'])
|
||||
_entry = ' '.join([entry, entry_opts]).strip()
|
||||
_entry = ' '.join([entry, entry_opts.lstrip()]).strip()
|
||||
|
||||
if __salt__['ipset.check'](kwargs['set_name'],
|
||||
_entry,
|
||||
|
Loading…
Reference in New Issue
Block a user