Skip to content

Commit

Permalink
Merge pull request #831 from Alignak-monitoring/fix-#827
Browse files Browse the repository at this point in the history
Fixes #827: Correctly set default realm to a daemon that do not decla…
  • Loading branch information
ddurieux committed May 28, 2017
2 parents 832301b + 797688e commit 62bea57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alignak/objects/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,7 @@ def fill_default_satellites(self):
self.receivers, self.schedulers]
for satellites_list in satellites:
for satellite in satellites_list:
if not hasattr(satellite, 'realm'):
if not hasattr(satellite, 'realm') or getattr(satellite, 'realm') == '':
satellite.realm = default_realm.get_name()
satellite.realm_name = default_realm.get_name()
logger.info("Tagging %s with realm %s", satellite.get_name(), satellite.realm)
Expand Down

0 comments on commit 62bea57

Please sign in to comment.