Fixup pathing

This commit is contained in:
James Page 2014-11-10 11:35:13 +00:00
parent f3aa17c726
commit 0332485ad6
2 changed files with 2 additions and 6 deletions

2
hooks/fabfile.py vendored
View File

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

View File

@ -102,9 +102,8 @@ class POWERProxy():
self.add_bridges()
def copy_file(self, target):
print(os.path.join(CHARM_SCRATCH_DIR, target))
execute(copy_file_as_root,
os.path.join(CHARM_SCRATCH_DIR, target),
"%s/%s" % (CHARM_SCRATCH_DIR, target),
target)
def restart_service(self, service):
@ -125,8 +124,7 @@ class POWERProxy():
def commit(self):
for f in CONFIG_FILES:
if os.path.exists(os.path.join(CHARM_SCRATCH_DIR,
f)):
if os.path.exists("%s/%s" % (CHARM_SCRATCH_DIR, f)):
self.copy_file(f)