Merge "Temporary fix for lost upstart directory"

This commit is contained in:
Jenkins
2015-09-18 14:39:19 +00:00
committed by Gerrit Code Review
2 changed files with 15 additions and 1 deletions

View File

@@ -119,7 +119,7 @@ class TestManager(unittest2.TestCase):
mock_utils, mock_gu, mock_open,
mock_grub):
def _fake_uuid(*args, **kwargs):
if args[5] == '/dev/mapper/os-root':
if len(args) >= 6 and args[5] == '/dev/mapper/os-root':
return ('FAKE_ROOTFS_UUID', None)
else:
return ('FAKE_UUID', None)