diff --git a/src/rhsmlib/services/register.py b/src/rhsmlib/services/register.py index aa3d451844..2ba1b3fb29 100644 --- a/src/rhsmlib/services/register.py +++ b/src/rhsmlib/services/register.py @@ -100,8 +100,8 @@ def register( environments = options["environments"] facts_dict = self.facts.get_facts() - # Default to the hostname if no name is given - consumer_name = options["name"] or socket.gethostname() + # Default to the FQDN if no name is given + consumer_name = options["name"] or socket.getfqdn() self.plugin_manager.run("pre_register_consumer", name=consumer_name, facts=facts_dict)