mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix dir lookup in butterkvm
This commit is contained in:
parent
81892ebf71
commit
c5e0f83cb5
1 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,8 @@ def local_images(local_path):
|
|||
CLI Example:
|
||||
salt '*' buttervm.local_images <image_path>
|
||||
'''
|
||||
if not os.path.isdir(local_path):
|
||||
os.makedirs(local_path)
|
||||
images = os.listdir(local_path)
|
||||
images.sort()
|
||||
return images
|
||||
|
|
Loading…
Add table
Reference in a new issue