Update get_mgmt method

This commit is contained in:
Junaid Ali 2016-07-28 00:37:26 +05:00
parent e5938ba7b7
commit 755ad19585
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ def get_mgmt_interface():
mgmt_interface = config('mgmt-interface')
if not mgmt_interface:
return get_iface_from_addr(unit_get('private-address'))
elif mgmt_interface and interface_exists(mgmt_interface):
elif interface_exists(mgmt_interface):
return mgmt_interface
else:
log('Provided managment interface %s does not exist'