mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
update cmd parser to use the client config func
This commit is contained in:
parent
fa2c84317d
commit
9a59b76c21
@ -340,13 +340,13 @@ def master_config(path):
|
||||
return opts
|
||||
|
||||
|
||||
def client_config(mdir):
|
||||
def client_config(path):
|
||||
'''
|
||||
Load in the configuration data needed for the LocalClient. This function
|
||||
searches for client specific configurations and adds them to the data from
|
||||
the master configuration.
|
||||
'''
|
||||
opts = master_config(mdir)
|
||||
opts = master_config(path)
|
||||
cpath = os.path.expanduser('~/.salt')
|
||||
load_config(opts, cpath, 'SALT_CLIENT_CONFIG')
|
||||
if 'token_file' in opts:
|
||||
|
@ -753,7 +753,7 @@ class SaltCMDOptionParser(OptionParser, ConfigDirMixIn, TimeoutMixIn,
|
||||
self.config['arg'] = self.args[2:]
|
||||
|
||||
def setup_config(self):
|
||||
return config.master_config(self.get_config_file_path('master'))
|
||||
return config.client_config(self.get_config_file_path('master'))
|
||||
|
||||
|
||||
class SaltCPOptionParser(OptionParser, ConfigDirMixIn, TimeoutMixIn,
|
||||
|
Loading…
Reference in New Issue
Block a user