summaryrefslogtreecommitdiffstats
path: root/bin/prepare_mock.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/prepare_mock.py')
-rwxr-xr-xbin/prepare_mock.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/prepare_mock.py b/bin/prepare_mock.py
index 982ca32..245113a 100755
--- a/bin/prepare_mock.py
+++ b/bin/prepare_mock.py
@@ -6,8 +6,9 @@ import socket
iddir = 'pillar/id/'
secretiddir = 'pillar/secret/id/'
-baseidfile = 'atvkdev02_home_lysergic_dev.sls'
+baseidfile = 'pillar/mock/example.sls'
myidfile = socket.gethostname() + '.sls'
-shutil.copyfile(iddir + baseidfile, iddir + myidfile)
-shutil.copyfile(secretiddir + baseidfile, secretiddir + myidfile)
+shutil.copyfile(baseidfile, os.path.join(iddir, myidfile))
+os.makedirs(secretiddir)
+shutil.copyfile(baseidfile, os.path.join(secretiddir, myidfile))