diff options
Diffstat (limited to 'rpmbuild-remote.py')
-rw-r--r-- | rpmbuild-remote.py | 16 |
1 files changed, 8 insertions, 8 deletions
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): |