Sonar Fix - String Comparison 49/90949/2
authorSudarshan Kumar <sudars19@in.ibm.com>
Fri, 5 Jul 2019 13:08:38 +0000 (18:38 +0530)
committerPatrick Brady <patrick.brady@att.com>
Thu, 11 Jul 2019 19:26:30 +0000 (19:26 +0000)
Sonar Fix - String Comparison

Issue-ID: APPC-1629
Change-Id: Ia13da99f101d479aba7009ba4dffc201aa9a3ffe
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebuildServer.java

index 09beb98..4412b95 100644 (file)
@@ -220,7 +220,7 @@ public class RebuildServer extends ProviderServerOperation {
         }
         // Always perform Hypervisor Status checks
         // unless the skip is set to true
-        if (skipHypervisorCheck == null || (!skipHypervisorCheck.equalsIgnoreCase("true"))) {
+        if (skipHypervisorCheck == null || (!"true".equalsIgnoreCase(skipHypervisorCheck))) {
             // Check of the Hypervisor for the VM Server is UP and reachable
             checkHypervisor(server);
         }