Skip to content
Snippets Groups Projects
Commit 2fd39d55 authored by Robert Latta's avatar Robert Latta
Browse files

changed redis key; added extra switch on rsync command

parent b214ca7b
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ def update_lg_routers_ims(self, use_current=False):
if use_current:
r = get_current_redis(InventoryTask.config)
for k in r.scan_iter('classifier-cache:ims-lg:*'):
for k in r.scan_iter('ims:lg:*'):
r.delete(k)
else:
r = get_next_redis(InventoryTask.config)
......@@ -203,7 +203,7 @@ def export_data_for_otrs(self, files_to_export=None, export_duplicates=False):
ims_config = InventoryTask.config["ims"]
otrs_config = InventoryTask.config["otrs-export"]
command_template = 'rsync -aPq --rsh="ssh -l {user} -p 22 -i {key_file} -o \'UserKnownHostsFile {known_hosts}\'" {source_dir}/* {destination}' # noqa
command_template = 'rsync -aPq --no-perms --rsh="ssh -l {user} -p 22 -i {key_file} -o \'UserKnownHostsFile {known_hosts}\'" {source_dir}/* {destination}' # noqa
with tempfile.TemporaryDirectory() as temp_dir:
temp_path = Path(temp_dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment