Skip to content

Commit

Permalink
Clean registry entry in etc hosts file if registration failed
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusbv committed May 20, 2024
1 parent 7de59e6 commit 585ab13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion usr/sbin/registercloudguest
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,10 @@ while not base_registered:
)
)
utils.remove_registration_data()
utils.clean_hosts_file(registration_target.get_FQDN())
utils.clean_hosts_file(
registration_target.get_FQDN(),
registration_target.get_registry_FQDN()
)
registration_target = smt_srv
break
else:
Expand Down

0 comments on commit 585ab13

Please sign in to comment.