Skip to content

Commit

Permalink
Make config-refresh endpoint more tolerant of having zero cloud provi…
Browse files Browse the repository at this point in the history
…ders configured.
  • Loading branch information
duftler committed Nov 14, 2015
1 parent d21ae06 commit 093f025
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
package com.netflix.spinnaker.clouddriver.security

class NoopCredentialsInitializerSynchronizable implements CredentialsInitializerSynchronizable {
String credentialsSynchronizationBeanName = "noop"
String credentialsSynchronizationBeanName = null
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public class CredentialsRefreshListener implements ApplicationListener<ConfigRef
@Override
void onApplicationEvent(ConfigRefreshedEvent event) {
for (CredentialsInitializerSynchronizable credentialsInitializer : credentialsInitializers) {
appContext.getBean(credentialsInitializer.credentialsSynchronizationBeanName)
if (credentialsInitializer.credentialsSynchronizationBeanName) {
appContext.getBean(credentialsInitializer.credentialsSynchronizationBeanName)
}
}
}
}

0 comments on commit 093f025

Please sign in to comment.