]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix xxx=\n pep8 errors in volume_utils.py
authorJohn Griffith <john.griffith@solidfire.com>
Thu, 7 May 2015 22:27:05 +0000 (16:27 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Thu, 7 May 2015 22:27:05 +0000 (16:27 -0600)
Newer versions of pep8 will catch this and complain,
rather than continuing to ignore in my editor just fix
them up real quick.

Change-Id: Ib19b11cad3508d879059a22b4a81aa024b5d9a30

cinder/volume/utils.py

index d242118581818721489c8b4e8dfa4ec151f83f95..07d9ebb1b99f1cca166a9f770d330c362226b444 100644 (file)
@@ -43,26 +43,22 @@ def null_safe_str(s):
 
 
 def _usage_from_volume(context, volume_ref, **kw):
-    usage_info = dict(tenant_id=volume_ref['project_id'],
-                      host=volume_ref['host'],
-                      user_id=volume_ref['user_id'],
-                      availability_zone=volume_ref['availability_zone'],
-                      volume_id=volume_ref['id'],
-                      volume_type=volume_ref['volume_type_id'],
-                      display_name=volume_ref['display_name'],
-                      launched_at=timeutils.isotime(at=
-                                                    volume_ref['launched_at']),
-                      created_at=timeutils.isotime(at=
-                                                   volume_ref['created_at']),
-                      status=volume_ref['status'],
-                      snapshot_id=volume_ref['snapshot_id'],
-                      size=volume_ref['size'],
-                      replication_status=volume_ref['replication_status'],
-                      replication_extended_status=
-                      volume_ref['replication_extended_status'],
-                      replication_driver_data=
-                      volume_ref['replication_driver_data'],
-                      )
+    usage_info = dict(
+        tenant_id=volume_ref['project_id'],
+        host=volume_ref['host'],
+        user_id=volume_ref['user_id'],
+        availability_zone=volume_ref['availability_zone'],
+        volume_id=volume_ref['id'],
+        volume_type=volume_ref['volume_type_id'],
+        display_name=volume_ref['display_name'],
+        launched_at=timeutils.isotime(at=volume_ref['launched_at']),
+        created_at=timeutils.isotime(at=volume_ref['created_at']),
+        status=volume_ref['status'],
+        snapshot_id=volume_ref['snapshot_id'],
+        size=volume_ref['size'],
+        replication_status=volume_ref['replication_status'],
+        replication_extended_status=volume_ref['replication_extended_status'],
+        replication_driver_data=volume_ref['replication_driver_data'],)
 
     usage_info.update(kw)
     return usage_info