Fixes #5999 - Support assigning public IP to Amazon EC2 host

This is a shot in the dark, hopefully it hits the mark.

/cc @karaaie @KrisBuytaert
```def is_vpc?``` makes the method a bit more idiomatic. The comment here is a bit redundant given the method name already tells what it does in my opinion.