Skip to content

Instantly share code, notes, and snippets.

@fikovnik
Created October 30, 2014 15:40
Show Gist options
  • Save fikovnik/91ebe59d2c31c2dfa7bc to your computer and use it in GitHub Desktop.
Save fikovnik/91ebe59d2c31c2dfa7bc to your computer and use it in GitHub Desktop.
Updated node.py:1110 file to add node_ip_address as the ip_address seams to be disappearing and it is easier to hack maasserver package (can be refreshed by apache restart)
# Try to pass the IP address correspond to the mac address
if 'ip_address' not in power_params:
ip_address_list = self.ip_address_of_mac_address(power_params['mac_address'])
if len(ip_address_list) > 0:
power_params['ip_address'] = ip_address_list[0]
power_params['node_ip_address'] = ip_address_list[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment