3 Lists the VMs belonging to a given user.
9 from invirt import database
14 print >>sys.stderr, "usage: invirt-remote-listuser <user>"
20 for m in database.Machine.query().join('acl').filter_by(user=username):
21 output[m.name] = dict(owner=m.owner, contact=m.contact)
23 print yaml.dump(output, Dumper=yaml.CSafeDumper, default_flow_style=False)
27 if __name__ == '__main__':
28 sys.exit(main(sys.argv))