mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Merge pull request #18366 from thatch45/saltfile_parser
Get non standard saltfile opts into opts
This commit is contained in:
commit
b1e2d289fe
@ -293,6 +293,8 @@ class SaltfileMixIn(object):
|
||||
saltfile = os.path.join(os.getcwd(), 'Saltfile')
|
||||
if os.path.isfile(saltfile):
|
||||
self.options.saltfile = saltfile
|
||||
else:
|
||||
saltfile = self.options.saltfile
|
||||
|
||||
if not self.options.saltfile:
|
||||
# There's still no valid Saltfile? No need to continue...
|
||||
@ -372,6 +374,10 @@ class SaltfileMixIn(object):
|
||||
option.dest,
|
||||
cli_config[option.dest])
|
||||
|
||||
# Any left over value in the saltfile can now be safely added
|
||||
for key in cli_config:
|
||||
setattr(self.options, key, cli_config[key])
|
||||
|
||||
|
||||
class HardCrashMixin(object):
|
||||
__metaclass__ = MixInMeta
|
||||
@ -2168,6 +2174,12 @@ class SaltSSHOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn,
|
||||
'time to manage connections, the more running processes the '
|
||||
'faster communication should be, default is %default'
|
||||
)
|
||||
self.add_option(
|
||||
'--extra-filerefs',
|
||||
dest='extra_filerefs',
|
||||
default=None,
|
||||
help='Pass in extra files to include in the state tarball'
|
||||
)
|
||||
self.add_option(
|
||||
'-v', '--verbose',
|
||||
default=False,
|
||||
|
Loading…
Reference in New Issue
Block a user