diff --git a/resource-discovery/src/main/java/eu/nebulous/resource/discovery/registration/service/SALRegistrationService.java b/resource-discovery/src/main/java/eu/nebulous/resource/discovery/registration/service/SALRegistrationService.java index ff4ca13..b8688ce 100644 --- a/resource-discovery/src/main/java/eu/nebulous/resource/discovery/registration/service/SALRegistrationService.java +++ b/resource-discovery/src/main/java/eu/nebulous/resource/discovery/registration/service/SALRegistrationService.java @@ -45,7 +45,7 @@ public void register(Device device) { application_name=""; } String public_ip = System.getenv("NEBULOUS_IP"); - if (public_ip.equals("")){ + if (public_ip!=null && public_ip.isEmpty()){ log.warn("Using default IP address as the environmental variable was not set or found"); public_ip = processorProperties.getNebulous_server_ip_address(); } diff --git a/resource-discovery/src/main/resources/banner.txt b/resource-discovery/src/main/resources/banner.txt index c8085cb..4814a59 100644 --- a/resource-discovery/src/main/resources/banner.txt +++ b/resource-discovery/src/main/resources/banner.txt @@ -8,5 +8,4 @@ ${AnsiColor.012} ╚═╝ ╚═╝╚══════╝╚═════ ${AnsiColor.046} :: App version :: ${AnsiColor.87} (${application.version}) ${AnsiColor.046} :: Spring Boot :: ${AnsiColor.87} ${spring-boot.formatted-version} -${AnsiColor.046} :: Java (TM) :: ${AnsiColor.87} (${java.version}) -${AnsiColor.DEFAULT}${AnsiStyle.NORMAL} \ No newline at end of file +${AnsiColor.046} :: Java (TM) :: ${AnsiColor.87} (${java.version}) \ No newline at end of file