Make IP retrieval more reliable #376

Merged
merged 1 commit into from Aug 29, 2012

2 participants

@ccaum

Previous to this commit, the public IP returned from ruby-libvirt may
not be an array. The code assumes it's an array and always grabs the
first item. I'm not sure if it's ever an array, but to be safe this
commit ensures what's returned from #public_ip_address is an array, then
the first item is selected.

@ccaum ccaum Make IP retrieval more reliable
Previous to this commit, the public IP returned from ruby-libvirt may
not be an array. The code assumes it's an array and always grabs the
first item.  I'm not sure if it's ever an array, but to be safe this
commit ensures what's returned from #public_ip_address is an array, then
the first item is selected.
c311c65
@jedi4ever jedi4ever merged commit 1b63ce8 into jedi4ever:master Aug 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment