diff options
author | Martin Basti <mbasti@redhat.com> | 2016-06-16 19:13:45 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-06-17 18:05:03 +0200 |
commit | 4155eb7b13b20605886ba79c02c232f83a7b439c (patch) | |
tree | 310f70edd61952e24c4582b844c087a09ca65ce5 /ipaserver/dns_data_management.py | |
parent | 3c50e42036427d7c5e36828f24bd3c180e18a677 (diff) | |
download | freeipa-4155eb7b13b20605886ba79c02c232f83a7b439c.tar.gz freeipa-4155eb7b13b20605886ba79c02c232f83a7b439c.tar.xz freeipa-4155eb7b13b20605886ba79c02c232f83a7b439c.zip |
DNS Locations: Rename ipalocationweight to ipaserviceweight
Service weight explains better meaning of attribute than location
weight, because location itself have no weight only services have.
https://fedorahosted.org/freeipa/ticket/2008
Reviewed-By: Petr Spacek <pspacek@redhat.com>
Diffstat (limited to 'ipaserver/dns_data_management.py')
-rw-r--r-- | ipaserver/dns_data_management.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/dns_data_management.py b/ipaserver/dns_data_management.py index b6ae27ad3..4074b0318 100644 --- a/ipaserver/dns_data_management.py +++ b/ipaserver/dns_data_management.py @@ -72,7 +72,7 @@ class IPASystemRecords(object): def __get_server_attrs(self, hostname): server_result = self.api_instance.Command.server_show(hostname)['result'] - weight = int(server_result.get('ipalocationweight', [u'100'])[0]) + weight = int(server_result.get('ipaserviceweight', [u'100'])[0]) location = server_result.get('ipalocation_location', [None])[0] roles = set(server_result.get('enabled_role_servrole', ())) |