Commit 65c7277a authored by Vincent Pelletier's avatar Vincent Pelletier

Use local variables rather than properties when possible.

parent 00f9ecd5
......@@ -34,9 +34,9 @@ class Agent:
configuration = ConfigParser.SafeConfigParser()
configuration.readfp(configuration_file)
self.portal_url = configuration.get("agent", "portal_url")
self.master_url = configuration.get("agent", "master_url")
self.key_file = configuration.get("agent", "key_file")
self.cert_file = configuration.get("agent", "cert_file")
master_url = configuration.get("agent", "master_url")
key_file = configuration.get("agent", "key_file")
cert_file = configuration.get("agent", "cert_file")
self.maximum_software_installation_duration = \
timedelta(minutes=configuration.getfloat("agent", "maximum_software_installation_duration"))
self.software_live_duration = \
......@@ -54,7 +54,7 @@ class Agent:
self.logger = getLogger()
self.slap = slap()
self.slap.initializeConnection(self.master_url, self.key_file, self.cert_file)
self.slap.initializeConnection(master_url, key_file, cert_file)
self.supply = Supply()
state = ConfigParser.SafeConfigParser()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment