From 196b44f38a0188b47ee1846f8f009cc41d68ec6e Mon Sep 17 00:00:00 2001
From: Adam Harwell <flux.adam@gmail.com>
Date: Thu, 4 May 2017 15:55:22 -0700
Subject: [PATCH] Fix py3 error in block-device

This is breaking the octavia py3 gates.
Introduced by: I7aa4fe0466e44846d8fa3194575d446fe4b5b2e6

Change-Id: I3d86482a2999197a60a81d42afc5ef7a6e71e313
---
 diskimage_builder/block_device/blockdevice.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diskimage_builder/block_device/blockdevice.py b/diskimage_builder/block_device/blockdevice.py
index fc7917f3d..3a60b183a 100644
--- a/diskimage_builder/block_device/blockdevice.py
+++ b/diskimage_builder/block_device/blockdevice.py
@@ -125,7 +125,7 @@ class BlockDevice(object):
                 raise BlockDeviceSetupException(
                     "Top level config must contain exactly one key per entry")
             logger.debug("Config entry [%s]" % config_entry)
-            config_key = config_entry.keys()[0]
+            config_key = list(config_entry)[0]
             config_value = config_entry[config_key]
             name = config_value['name'] \
                    if 'name' in config_value else None