Skip to content

Instantly share code, notes, and snippets.

@seanorama
Created July 11, 2019 17:47
Show Gist options
  • Save seanorama/81824b51966d139a73af4796c93d7ca9 to your computer and use it in GitHub Desktop.
Save seanorama/81824b51966d139a73af4796c93d7ca9 to your computer and use it in GitHub Desktop.
ambari-patches
From 6fae0efce307b0ba8d5520189af0de4be21edccb Mon Sep 17 00:00:00 2001
From: Andrew Onishuk <[email protected]>
Date: Fri, 1 Feb 2019 11:20:49 +0200
Subject: [PATCH] AMBARI-25123. /var/lib/ambari-agent/cache not updating
(Ambari 2.7) (aonishuk)
---
.../src/main/python/ambari_agent/CustomServiceOrchestrator.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py b/ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py
index 6d15e7855ab..1ce2ae5fc0e 100644
--- a/ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py
+++ b/ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py
@@ -347,6 +347,7 @@ def runCommand(self, command_header, tmpoutfile, tmperrfile, forced_command_name
# forces a hash challenge on the directories to keep them updated, even
# if the return type is not used
+ self.file_cache.get_host_scripts_base_dir(command)
base_dir = self.file_cache.get_service_base_dir(command)
script_path = self.resolve_script_path(base_dir, script)
script_tuple = (script_path, base_dir)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment