summaryrefslogtreecommitdiff
path: root/openstackclient/volume/v1/snapshot.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/volume/v1/snapshot.py')
-rw-r--r--openstackclient/volume/v1/snapshot.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/openstackclient/volume/v1/snapshot.py b/openstackclient/volume/v1/snapshot.py
index 6055a4d8..d3a56b75 100644
--- a/openstackclient/volume/v1/snapshot.py
+++ b/openstackclient/volume/v1/snapshot.py
@@ -16,6 +16,7 @@
"""Volume v1 Snapshot action implementations"""
import logging
+import six
import sys
from cliff import command
@@ -69,7 +70,7 @@ class CreateSnapshot(show.ShowOne):
parsed_args.description
)
- return zip(*sorted(snapshot._info.iteritems()))
+ return zip(*sorted(six.iteritems(snapshot._info)))
class DeleteSnapshot(command.Command):
@@ -175,4 +176,4 @@ class ShowSnapshot(show.ShowOne):
snapshot = utils.find_resource(volume_client.volume_snapshots,
parsed_args.snapshot)
- return zip(*sorted(snapshot._info.iteritems()))
+ return zip(*sorted(six.iteritems(snapshot._info)))