>From 218ea4123dece47e6deaeca78ae13ded8771129e Mon Sep 17 00:00:00 2001
From: Ade Lee <alee@redhat.com>
Date: Tue, 18 Dec 2012 13:15:14 -0500
Subject: [PATCH 107/107] Revert to using default config file for pkidestroy

Previously, we archived the default config file when an instance
was created, and used that file in running pkidestroy.  We plan
to replace this mechanism in favor of actually reading the instance's
config files.  For now, we return to using the standard default config
template, so that we can change it without breaking pkidestroy.
---
 base/deploy/src/pkidestroy                 | 7 ++-----
 base/deploy/src/scriptlets/finalization.py | 2 --
 base/deploy/src/scriptlets/pkiparser.py    | 5 -----
 3 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/base/deploy/src/pkidestroy b/base/deploy/src/pkidestroy
index 7d30d743abe06208256c247134087e220da8a497..edb57e9ac3472ab34b650f7ec9cdf7662e946dc6 100755
--- a/base/deploy/src/pkidestroy
+++ b/base/deploy/src/pkidestroy
@@ -125,12 +125,9 @@ def main(argv):
         print
         parser.arg_parser.exit(-1);
 
+    config.default_deployment_cfg = config.PKI_DEPLOYMENT_DEFAULT_CONFIGURATION_FILE
+
     # establish complete path to previously deployed configuration file
-    config.default_deployment_cfg =\
-        deployed_pki_subsystem_path + "/" +\
-        "registry" + "/" +\
-        config.pki_subsystem.lower() + "/" +\
-        config.DEFAULT_DEPLOYMENT_CONFIGURATION
     config.user_deployment_cfg =\
         deployed_pki_subsystem_path + "/" +\
         "registry" + "/" +\
diff --git a/base/deploy/src/scriptlets/finalization.py b/base/deploy/src/scriptlets/finalization.py
index fa8a31e1f263eb35562de87f1640caa8953f68aa..8fe643e15f6c251e5be2fc128d402a13b361ce06 100644
--- a/base/deploy/src/scriptlets/finalization.py
+++ b/base/deploy/src/scriptlets/finalization.py
@@ -47,8 +47,6 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet):
                             extra=config.PKI_INDENTATION_LEVEL_1)
         # For debugging/auditing purposes, save a timestamped copy of
         # this configuration file in the subsystem archive
-        util.file.copy(master['pki_default_deployment_cfg_replica'],
-                       master['pki_default_deployment_cfg_spawn_archive'])
         util.file.copy(master['pki_user_deployment_cfg_replica'],
                        master['pki_user_deployment_cfg_spawn_archive'])
         # Save a copy of the installation manifest file
diff --git a/base/deploy/src/scriptlets/pkiparser.py b/base/deploy/src/scriptlets/pkiparser.py
index e4a6aed854c42c826f793a6790b9fab9c1b5f508..2a4111f91c0b7e0412a82c0c93b7e61d7d6225a6 100644
--- a/base/deploy/src/scriptlets/pkiparser.py
+++ b/base/deploy/src/scriptlets/pkiparser.py
@@ -913,11 +913,6 @@ class PKIConfigParser:
             config.pki_master_dict['pki_user_deployment_cfg_replica'] =\
                 os.path.join(config.pki_master_dict['pki_subsystem_registry_path'],
                              config.USER_DEPLOYMENT_CONFIGURATION)
-            config.pki_master_dict['pki_default_deployment_cfg_spawn_archive'] =\
-                config.pki_master_dict['pki_subsystem_archive_log_path'] + "/" +\
-                "spawn" + "_" +\
-                config.DEFAULT_DEPLOYMENT_CONFIGURATION + "." +\
-                config.pki_master_dict['pki_timestamp']
             config.pki_master_dict['pki_user_deployment_cfg_spawn_archive'] =\
                 config.pki_master_dict['pki_subsystem_archive_log_path'] + "/" +\
                 "spawn" + "_" +\
-- 
1.7.11.7

