diff --git a/confluent_osdeploy/common/opt/confluent/bin/apiclient b/confluent_osdeploy/common/opt/confluent/bin/apiclient index 6907cb8c..45586c6d 100644 --- a/confluent_osdeploy/common/opt/confluent/bin/apiclient +++ b/confluent_osdeploy/common/opt/confluent/bin/apiclient @@ -14,7 +14,7 @@ def get_apikey(nodename, mgr): return open('/etc/confluent/confluent.apikey').read().strip() apikey = subprocess.check_output(['/opt/confluent/bin/clortho', nodename, mgr]) if not isinstance(apikey, str): - apikey = apikey.decode('utf8') + apikey = apikey.decode('utf8').strip() with open('/etc/confluent/confluent.apikey', 'w+') as apiout: apiout.write(apikey) os.chmod('/etc/confluent/confluent.apikey', 0o600)