Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Zheng
slapos.toolbox
Commits
a479c4a5
Commit
a479c4a5
authored
Jun 26, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Move configuration file parsing out of Agent class and into main function.
parent
454884e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
slapos/agent/agent.py
slapos/agent/agent.py
+1
-4
No files found.
slapos/agent/agent.py
View file @
a479c4a5
...
@@ -36,9 +36,6 @@ class Agent:
...
@@ -36,9 +36,6 @@ class Agent:
key_file
=
None
,
cert_file
=
None
,
key_file
=
None
,
cert_file
=
None
,
):
):
self
.
portal_url
=
portal_url
self
.
portal_url
=
portal_url
master_url
=
master_url
key_file
=
key_file
cert_file
=
cert_file
self
.
maximum_software_installation_duration
=
\
self
.
maximum_software_installation_duration
=
\
maximum_software_installation_duration
maximum_software_installation_duration
self
.
software_live_duration
=
software_live_duration
self
.
software_live_duration
=
software_live_duration
...
@@ -175,7 +172,7 @@ def main(*args):
...
@@ -175,7 +172,7 @@ def main(*args):
configuration
.
readfp
(
argument_option_instance
.
pop
(
"configuration_file"
)[
0
])
configuration
.
readfp
(
argument_option_instance
.
pop
(
"configuration_file"
)[
0
])
configuration_dict
=
dict
(
configuration
.
items
(
"agent"
))
configuration_dict
=
dict
(
configuration
.
items
(
"agent"
))
configuration_dict
.
update
(
argument_option_instance
.
__dict__
)
configuration_dict
.
update
(
argument_option_instance
.
__dict__
)
pidfile
=
op
tion_dict
.
get
(
"pidfile"
)
pidfile
=
configura
tion_dict
.
get
(
"pidfile"
)
if
pidfile
:
if
pidfile
:
setRunning
(
pidfile
)
setRunning
(
pidfile
)
agent
=
Agent
(
agent
=
Agent
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment