← Back to team overview

sts-sponsors team mailing list archive

Re: [Merge] ~ack/maas:vmhost-select-non-doscivered-ip into maas:master

 


Diff comments:

> diff --git a/src/metadataserver/api_twisted.py b/src/metadataserver/api_twisted.py
> index 950b53d..e52aa4d 100644
> --- a/src/metadataserver/api_twisted.py
> +++ b/src/metadataserver/api_twisted.py
> @@ -287,6 +287,7 @@ def _get_ip_address_for_vmhost(node):
>  
>      ip = (
>          StaticIPAddress.objects.exclude(ip__isnull=True)
> +        .exclude(alloc_type=IPADDRESS_TYPE.DISCOVERED)

Ah, good point, I've changed to use ip_addresses(), thanks

>          .filter(interface__in=interface_ids)
>          .values_list("ip", flat=True)
>          .first()


-- 
https://code.launchpad.net/~ack/maas/+git/maas/+merge/436764
Your team MAAS Committers is subscribed to branch maas:master.



References