Revision 05f1452c kamaki/cli/commands/volume.py
b/kamaki/cli/commands/volume.py | ||
---|---|---|
99 | 99 |
|
100 | 100 |
|
101 | 101 |
@command(snapshot_cmds) |
102 |
class snapshot_create(_init_volume): |
|
102 |
class snapshot_create(_init_volume, _optional_json):
|
|
103 | 103 |
"""Create a snapshot of a volume""" |
104 | 104 |
|
105 | 105 |
arguments = dict( |
... | ... | |
114 | 114 |
@errors.generic.all |
115 | 115 |
@errors.cyclades.connection |
116 | 116 |
def _run(self, volume_id): |
117 |
self.client.create_snapshot( |
|
118 |
volume_id, self['name'], self['description'], self['metadata']) |
|
117 |
self._print(self.client.create_snapshot(
|
|
118 |
volume_id, self['name'], self['description'], self['metadata']))
|
|
119 | 119 |
|
120 | 120 |
def main(self, volume_id): |
121 | 121 |
super(self.__class__, self)._run() |
Also available in: Unified diff