Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
agent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
7
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
054aa1ed
authored
Mar 09, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix flake8 errors
parent
e5d62e9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
agent.py
+2
-1
No files found.
agent.py
View file @
054aa1ed
...
...
@@ -73,7 +73,8 @@ class Context(object):
'iface eth0 inet dhcp
\n
'
)
subprocess
.
call
([
'/etc/init.d/networking'
,
'restart'
])
elif
distro
==
'rhel'
:
with
open
(
'/etc/sysconfig/network-scripts/ifcfg-eth0'
,
'w'
)
as
f
:
with
open
(
'/etc/sysconfig/network-scripts/ifcfg-eth0'
,
'w'
)
as
f
:
f
.
write
(
'DEVICE=eth0
\n
'
'BOOTPROTO=dhcp
\n
'
'ONBOOT=yes
\n
'
)
...
...
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