mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Validate img_format
This commit is contained in:
parent
bb6e2d5a8a
commit
5d69de04db
@ -140,6 +140,9 @@ def bootstrap(
|
||||
flavor=wheezy static_qemu=/usr/bin/qemu-x86_64-static
|
||||
|
||||
'''
|
||||
if img_format not in ('dir', 'sparse'):
|
||||
raise SaltInvocationError('The img_format must be "sparse" or "dir"')
|
||||
|
||||
if img_format == 'dir':
|
||||
# We can just use the root as the root
|
||||
if not __salt__['file.directory_exists'](root):
|
||||
|
Loading…
Reference in New Issue
Block a user