Skip to content

Commit 203bf10

Browse files
committed
Merge branch 'fix-get-backing' into 'master'
<fix>[zstacklib]: fix get backing chain See merge request zstackio/zstack-utility!3255
2 parents 12b57cb + 8e95d2c commit 203bf10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zstacklib/zstacklib/utils/linux.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,9 +1145,9 @@ def qcow2_get_backing_chain(path):
11451145
backing = qcow2_get_backing_file(path)
11461146
while backing:
11471147
ret.append(backing)
1148-
backing = qcow2_get_backing_file(path)
1148+
backing = qcow2_get_backing_file(backing)
11491149

1150-
return []
1150+
return ret
11511151

11521152
def get_qcow2_file_chain_size(path):
11531153
chain = qcow2_get_file_chain(path)

0 commit comments

Comments
 (0)