update cmd parser to use the client config func

This commit is contained in:
Thomas S Hatch 2012-10-06 23:11:30 -06:00
parent fa2c84317d
commit 9a59b76c21
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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,