From 7eca640ffa3e661140843d91dc4a846d3355a242 Mon Sep 17 00:00:00 2001 From: Gabe Date: Fri, 3 Oct 2014 17:27:57 -0600 Subject: Remove trivial path constants from modules https://fedorahosted.org/freeipa/ticket/4399 Reviewed-By: Petr Viktorin --- ipaserver/install/ipa_backup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ipaserver/install/ipa_backup.py') diff --git a/ipaserver/install/ipa_backup.py b/ipaserver/install/ipa_backup.py index 014b49bb6..4bee5d51f 100644 --- a/ipaserver/install/ipa_backup.py +++ b/ipaserver/install/ipa_backup.py @@ -63,7 +63,6 @@ EOF --keyring /root/backup.pub --list-secret-keys """ -BACKUP_DIR = paths.IPA_BACKUP_DIR def encrypt_file(filename, keyring, remove_original=True): @@ -539,10 +538,10 @@ class Backup(admintool.AdminTool): ''' if data_only: - backup_dir = os.path.join(BACKUP_DIR, time.strftime('ipa-data-%Y-%m-%d-%H-%M-%S')) + backup_dir = os.path.join(paths.IPA_BACKUP_DIR, time.strftime('ipa-data-%Y-%m-%d-%H-%M-%S')) filename = os.path.join(backup_dir, "ipa-data.tar") else: - backup_dir = os.path.join(BACKUP_DIR, time.strftime('ipa-full-%Y-%m-%d-%H-%M-%S')) + backup_dir = os.path.join(paths.IPA_BACKUP_DIR, time.strftime('ipa-full-%Y-%m-%d-%H-%M-%S')) filename = os.path.join(backup_dir, "ipa-full.tar") os.mkdir(backup_dir, 0700) -- cgit