mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
change the local_images function again
This commit is contained in:
parent
4f2899018a
commit
bf1d9ce4da
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ def local_images(local_path):
|
|||
salt '*' buttervm.local_images <image_path>
|
||||
'''
|
||||
if not os.path.isdir(local_path):
|
||||
os.makedirs(local_path)
|
||||
return []
|
||||
images = os.listdir(local_path)
|
||||
images.sort()
|
||||
return images
|
||||
|
|
Loading…
Add table
Reference in a new issue