summaryrefslogtreecommitdiff
path: root/ironic_python_agent/extensions/image.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-03-31 12:36:11 +0000
committerGerrit Code Review <review@openstack.org>2020-03-31 12:36:11 +0000
commit68a71513f0d6ae66d9663065f2f4dff6a169dcee (patch)
tree9a7f201a4686ce32187c43426a626017048af7bb /ironic_python_agent/extensions/image.py
parent916cd5c8de911a58b8a6769c32983d4f8d2d7f55 (diff)
parenta332a19a571568d7fd5ac6ce978c140f4d362771 (diff)
downloadironic-python-agent-68a71513f0d6ae66d9663065f2f4dff6a169dcee.tar.gz
Merge "Bump hacking to 3.0.0"
Diffstat (limited to 'ironic_python_agent/extensions/image.py')
-rw-r--r--ironic_python_agent/extensions/image.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ironic_python_agent/extensions/image.py b/ironic_python_agent/extensions/image.py
index b110b78b..79fb67bf 100644
--- a/ironic_python_agent/extensions/image.py
+++ b/ironic_python_agent/extensions/image.py
@@ -111,8 +111,8 @@ def _get_partition(device, uuid):
# device has a partition (which we assume to contain the root fs).
if hardware.is_md_device(device):
md_partition = device + 'p1'
- if (os.path.exists(md_partition) and
- stat.S_ISBLK(os.stat(md_partition).st_mode)):
+ if (os.path.exists(md_partition)
+ and stat.S_ISBLK(os.stat(md_partition).st_mode)):
LOG.debug("Found md device with partition %s",
md_partition)
return md_partition