Kaydet (Commit) 07455a6a authored tarafından Aanand Prasad's avatar Aanand Prasad

Clarify error messages when bad values are passed in for tmpfs

Signed-off-by: 's avatarAanand Prasad <aanand.prasad@gmail.com>
üst 88ef5f36
...@@ -343,7 +343,8 @@ def convert_tmpfs_mounts(tmpfs): ...@@ -343,7 +343,8 @@ def convert_tmpfs_mounts(tmpfs):
if not isinstance(tmpfs, list): if not isinstance(tmpfs, list):
raise ValueError( raise ValueError(
'Tmpfs spec must be a list' 'Expected tmpfs value to be either a list or a dict, found: {}'
.format(type(tmpfs).__name__)
) )
result = {} result = {}
...@@ -357,7 +358,8 @@ def convert_tmpfs_mounts(tmpfs): ...@@ -357,7 +358,8 @@ def convert_tmpfs_mounts(tmpfs):
else: else:
raise ValueError( raise ValueError(
"Tmpfs spec have to be str, unicode or tuple" "Expected item in tmpfs list to be a string, found: {}"
.format(type(mount).__name__)
) )
result[name] = options result[name] = options
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment