summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-09-08 22:10:57 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-09-08 22:10:57 -0400
commit0e5e3aaab97e67201413b0460e7e0ccd7b337640 (patch)
treeea1db84fc4086dc4ff9d38c86ae22db794ccd4e8
parentd5a7a2cad6a44d284a26fe2282f04bc744de400c (diff)
downloadrpmbuild-remote-0e5e3aaab97e67201413b0460e7e0ccd7b337640.tar.gz
rpmbuild-remote-0e5e3aaab97e67201413b0460e7e0ccd7b337640.tar.xz
rpmbuild-remote-0e5e3aaab97e67201413b0460e7e0ccd7b337640.zip
Be consistent with opts name
-rw-r--r--rpmbuild-remote.py16
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):