History | View | Annotate | Download (4.5 kB)
cyclades: Common function to get object by ID
Create common helper function, for command line tools, to get an objectfrom DB by it's ID, and raise the appropriate command error if theobject does not exist or the ID is invalid.
Fix stale import statements
Commit 7cfc0ce moved code from webproject to snf_django. This commitfixes some stale imports that skipped renaming.
cyclades: Add --hypervisor option to backend cmds
Add '--hypervisor' option to 'backend-add' and 'backend-modify'management commands.
Refs #3772
Use pprint_table in server-show command
Move common code for mngmt commands to webproject
Move cyclades functions that are useful for all managament commands, likepprint_table or parse_filters, to snf-webproject.
Fix typo
Fix pep8 warnings
Modify backend-modify --drained and --offline args
Make backend-modify drained argument as --drained=True|False insteadof --drained and --no-drained. The same for offline.
Check clustername when modifying backend
Refactor code in management commands
Rename management commands