Try again

This commit is contained in:
James Page 2014-11-10 11:31:10 +00:00
parent cb84a6cea8
commit c6b095c6d1
2 changed files with 3 additions and 2 deletions

2
hooks/fabfile.py vendored
View File

@ -20,6 +20,8 @@ def yum_update():
def copy_file_as_root(src, dest):
print(src)
print(dest)
put(src, dest, use_sudo=True)

View File

@ -62,7 +62,6 @@ class POWERProxy():
self.hosts = hosts.split()
self.repository = repository
self.password = password
self.conf_path = CHARM_SCRATCH_DIR
self.key_filename = self._write_key()
self._init_fabric()
@ -104,7 +103,7 @@ class POWERProxy():
def copy_file(self, target):
execute(copy_file_as_root,
os.path.join(self.conf_path, target),
os.path.join(CHARM_SCRATCH_DIR, target),
target)
def restart_service(self, service):