Commit 054aa1ed by Bach Dániel

fix flake8 errors

parent e5d62e9c
......@@ -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')
......
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 sign in to comment