From 34191588dde0ea58e14f42d1da922061232fa08a Mon Sep 17 00:00:00 2001 From: Zhou Ya Date: Fri, 18 Nov 2016 15:34:10 +0800 Subject: [PATCH] Modify the indentation error Change-Id: I592f375a9fb675946c57f40f1abfb23bea652add --- code/daisy/daisy/api/backends/common.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/daisy/daisy/api/backends/common.py b/code/daisy/daisy/api/backends/common.py index cf8a2e95..ff8bb3fe 100644 --- a/code/daisy/daisy/api/backends/common.py +++ b/code/daisy/daisy/api/backends/common.py @@ -703,12 +703,12 @@ def get_ctl_ha_nodes_min_mac(req, cluster_id): continue if role['name'] == "CONTROLLER_HA": role_hosts = get_hosts_of_role(req, role['id']) - for role_host in role_hosts: - host_detail = get_host_detail(req, - role_host['host_id']) - host_name = host_detail['name'] - min_mac = utils.get_host_min_mac(host_detail['interfaces']) - ctl_ha_nodes_min_mac[host_name] = min_mac + for role_host in role_hosts: + host_detail = get_host_detail(req, + role_host['host_id']) + host_name = host_detail['name'] + min_mac = utils.get_host_min_mac(host_detail['interfaces']) + ctl_ha_nodes_min_mac[host_name] = min_mac return ctl_ha_nodes_min_mac