Changeset 2509 for trunk/packages/invirt-remote/server
- Timestamp:
- Oct 19, 2009, 9:39:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-listuser
r2508 r2509 20 20 database.connect() 21 21 machines = Machine.query().join('acl').filter_by(user=username) 22 output = "Machine Name \t\t Owner \t\t contact \n\r"22 output = {} 23 23 for m in machines: 24 output += m.name + "\t" + m.owner +"\t" + m.contact + "\n\r" 24 25 data = {} 26 data['owner']=m.owner 27 data['contact'] = m.contact 28 output[m.name] = data 29 25 30 print output 31 print yaml.dump(output, Dumper=yaml.CSafeDumper, default_flow_style=False) 26 32 return 0 27 33 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.