diff --git a/hooks/fabfile.py b/hooks/fabfile.py index 243f7a1..574fc27 100644 --- a/hooks/fabfile.py +++ b/hooks/fabfile.py @@ -20,6 +20,8 @@ def yum_update(): def copy_file_as_root(src, dest): + print(src) + print(dest) put(src, dest, use_sudo=True) diff --git a/hooks/nova_compute_proxy.py b/hooks/nova_compute_proxy.py index 5ea5afc..dc4d418 100644 --- a/hooks/nova_compute_proxy.py +++ b/hooks/nova_compute_proxy.py @@ -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):