change the local_images function again

This commit is contained in:
Thomas S Hatch 2011-06-02 14:18:14 -06:00
parent 4f2899018a
commit bf1d9ce4da

View file

@ -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