Skip to content

Commit

Permalink
[core] When a Host does not know its admin IP address, look at the Node.
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Horvath committed Feb 4, 2015
1 parent 7cb7bc7 commit 4fc198b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cloud/Entity/Host.pm
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ sub adminIp {
if (defined $iface and $iface->hasIp) {
return $iface->getIPAddr;
}

if (defined $self->node and defined $self->node->admin_ip_addr) {
return $self->node->admin_ip_addr;
}

return undef;
}
Expand Down

0 comments on commit 4fc198b

Please sign in to comment.