diff --git a/psc/src/main/java/com/pinterest/psc/common/PscUtils.java b/psc/src/main/java/com/pinterest/psc/common/PscUtils.java index 85c9325..bcd57cc 100644 --- a/psc/src/main/java/com/pinterest/psc/common/PscUtils.java +++ b/psc/src/main/java/com/pinterest/psc/common/PscUtils.java @@ -32,7 +32,7 @@ public static T instantiateFromClass(String fqdn, Class targetClass) thro } public static boolean isEc2Host() { - return doesEc2MetadataExist() || isSysVendorAws() || IsAwsOsDetected(); + return doesEc2MetadataExist() || isSysVendorAws() || isAwsOsDetected(); } protected static boolean doesEc2MetadataExist() { @@ -56,7 +56,7 @@ protected static boolean isSysVendorAws() { } } - protected static boolean IsAwsOsDetected() { + protected static boolean isAwsOsDetected() { try { return System.getProperty("os.version").contains("aws"); } catch (Exception e) {