From 0e5e3aaab97e67201413b0460e7e0ccd7b337640 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 8 Sep 2009 22:10:57 -0400 Subject: Be consistent with opts name --- rpmbuild-remote.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'rpmbuild-remote.py') diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py index 4a0e266..2cc504c 100644 --- a/rpmbuild-remote.py +++ b/rpmbuild-remote.py @@ -78,7 +78,7 @@ def read_section(config, section, values): ret[value] = method(section, value) return ret -def read_preferences(options): +def read_preferences(opts): values = ( ('user', 'str'), ('ssh_key', 'str'), @@ -86,21 +86,21 @@ def read_preferences(options): ('port', 'int'), ) config = ConfigParser.SafeConfigParser() - config.read(options.config) - system = read_section(config, options.system, values) + config.read(opts.config) + system = read_section(config, opts.system, values) if system == {}: system = read_section(config, 'default', values) if 'user' not in system: - system['user'] = options.user + system['user'] = opts.user if 'ssh_key' not in system: - system['ssh_key'] = options.ssh_key + system['ssh_key'] = opts.ssh_key if 'host' not in system: - if options.host is None: + if opts.host is None: LOG.error("Host not set") sys.exit(1) - system['host'] = options.host + system['host'] = opts.host if 'port' not in system: - system['port'] = options.port + system['port'] = opts.port return system def execute_jobs(system, jobs): -- cgit