- if bridges is not None and networks != None:
+ if bridges and networks:
fail(_("Cannot mix both --bridge and --network arguments"))
-
- if bridges != None:
+ if bridges:
networks = map(lambda b: "bridge:" + b, bridges)
# ensure we have less macs then networks. Auto fill in the remaining
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
10-06-2008, 04:23 PM
Cole Robinson
Fix virt-install --bridge
Mark McLoughlin wrote:
> If you run virt-install with --bridge, you get:
>
> ERROR Cannot mix both --bridge and --network arguments
>
> because digest_networks() is comparing [] to None.
>
> Reduce confusion by also normalizing the bridges argument to
> a list and evaluating the lists as bools.
>