mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-07 17:40:30 +00:00
'os' module has already been imported
This commit is contained in:
parent
2fbea1f656
commit
9d375810f0
1 changed files with 0 additions and 2 deletions
|
@ -33,7 +33,6 @@ class Waagent(Task):
|
|||
waagent_file = 'WALinuxAgent-' + waagent_version + '.tar.gz'
|
||||
waagent_url = 'https://github.com/Azure/WALinuxAgent/archive/' + waagent_file
|
||||
log_check_call(['/usr/bin/wget', '-P', info.root, waagent_url])
|
||||
import os.path
|
||||
waagent_directory = os.path.join(info.root, 'root')
|
||||
log_check_call(['/bin/tar', 'xaf', os.path.join(info.root, waagent_file), '-C', waagent_directory])
|
||||
os.remove(os.path.join(info.root, waagent_file))
|
||||
|
@ -41,7 +40,6 @@ class Waagent(Task):
|
|||
log_check_call(['chroot', info.root, 'cp', waagent_script, '/usr/sbin/waagent'])
|
||||
log_check_call(['chroot', info.root, 'chmod', '755', '/usr/sbin/waagent'])
|
||||
log_check_call(['chroot', info.root, '/usr/sbin/waagent', '-install'])
|
||||
import os.path
|
||||
if info.manifest.system['waagent'].get('conf', False):
|
||||
if os.path.isfile(info.manifest.system['waagent']['conf']):
|
||||
log_check_call(['cp', info.manifest.system['waagent']['conf'],
|
||||
|
|
Loading…
Add table
Reference in a new issue