- 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
10-06-2008, 04:23 PM
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.