if (localNimbus!=null) { LOG.info("Pushing Credentials to topology {} in local mode", name); localNimbus.uploadNewCredentials(name, new Credentials(fullCreds)); } else { try(NimbusClient client = NimbusClient.getConfiguredClient(conf)) {
if (localNimbus!=null) { LOG.info("Pushing Credentials to topology {} in local mode", name); localNimbus.uploadNewCredentials(name, new Credentials(fullCreds)); } else { try(NimbusClient client = NimbusClient.getConfiguredClient(conf)) {