Revision 74c47259 lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
787 | 787 |
return c.GetResults().get(node, False) |
788 | 788 |
|
789 | 789 |
def call_snapshot_export(self, node, snap_bdev, dest_node, instance, |
790 |
cluster_name): |
|
790 |
cluster_name, idx):
|
|
791 | 791 |
"""Request the export of a given snapshot. |
792 | 792 |
|
793 | 793 |
This is a single-node call. |
794 | 794 |
|
795 | 795 |
""" |
796 | 796 |
params = [snap_bdev.ToDict(), dest_node, |
797 |
self._InstDict(instance), cluster_name] |
|
797 |
self._InstDict(instance), cluster_name, idx]
|
|
798 | 798 |
c = Client("snapshot_export", params) |
799 | 799 |
self._ConnectNode(c, node) |
800 | 800 |
c.Run() |
Also available in: Unified diff