fix typo and improve test to catch it

This commit is contained in:
Michael Hudson-Doyle 2018-07-05 11:14:39 +12:00
parent 3852ee69d5
commit 7124b5699a
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ Filesystem:
- [disk index 0, part 3]
- spare
- obj: [raid name md1]
action: FORMAT
action: PARTITION
data:
fstype: ext4
mount: /

View File

@ -693,7 +693,7 @@ class FilesystemModel(object):
if can_emit(obj):
emit(obj)
else:
next_work.apped(obj)
next_work.append(obj)
if len(next_work) == len(work):
raise Exception(
"rendering block devices made no progress: {}".format(