diff --git a/bin/yugabyted b/bin/yugabyted index 4049fa32cc63..d2ae13b094a1 100755 --- a/bin/yugabyted +++ b/bin/yugabyted @@ -7555,8 +7555,7 @@ class ControlScript(object): if args.advertise_address is None: if not self.configs.saved_data.get("advertise_address"): - - if str(os.path.exists("/.dockerenv")): + if os.path.exists("/.dockerenv"): args.advertise_address = self.find_hostname_of_node() else: if OS_NAME == "Linux":