Skip to content

Commit 1884212

Browse files
authored
Reset cached values when cluster is stopped (aws#5550)
Signed-off-by: Nicola Sirena <[email protected]>
1 parent 78d5348 commit 1884212

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/integration-tests/clusters_factory.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ def stop(self):
182182
try:
183183
result = run_pcluster_command(cmd_args, log_error=False, custom_cli_credentials=self.custom_cli_credentials)
184184
logging.info("Cluster {0} stopped successfully".format(self.name))
185+
186+
# reset cached info
187+
self.cluster_info = None
188+
self.login_nodes_info = None
189+
185190
return result.stdout
186191
except subprocess.CalledProcessError as e:
187192
logging.error("Failed stopping cluster with error:\n%s\nand output:\n%s", e.stderr, e.stdout)

0 commit comments

Comments
 (0)