Skip to content

Commit

Permalink
Fix loading azure client (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Jun 9, 2021
1 parent ffdfea2 commit b415245
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private void cleanDeployments(long successTimeoutInMinutes, long failTimeoutInMi
}
} catch (Exception e) {
LOGGER.log(Level.WARNING,
"AzureAciCleanUpTask: cleanDeployments: Failed to get/delete deployment: {0}",
"AzureAciCleanUpTask: cleanDeployments: Failed to get/delete deployment",
e);
// Check the number of attempts remaining. If greater than 0, decrement
// and add back into the queue.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ public void setLogAnalyticsCredentialsId(String logAnalyticsCredentialsId) {
}

public AzureResourceManager getAzureClient() {
if (azureClient == null) {
azureClient = createAzureClientSupplier();
}

return azureClient.get();
}

Expand Down

0 comments on commit b415245

Please sign in to comment.