mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Added missing arguments check
This commit is contained in:
parent
8a8c2a68aa
commit
f6c1f4a962
@ -1599,6 +1599,10 @@ class SaltSSHOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn,
|
||||
'initial deployment of keys very fast and easy')
|
||||
|
||||
def _mixin_after_parsed(self):
|
||||
if not self.args:
|
||||
self.print_help()
|
||||
self.exit(1)
|
||||
|
||||
if self.options.list:
|
||||
if ',' in self.args[0]:
|
||||
self.config['tgt'] = self.args[0].split(',')
|
||||
|
Loading…
Reference in New Issue
Block a user