diff options
Diffstat (limited to 'bin/prepare_mock.py')
-rwxr-xr-x | bin/prepare_mock.py | 7 |
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)) |