Fix dir lookup in butterkvm

This commit is contained in:
Thomas S Hatch 2011-06-02 14:11:06 -06:00
parent 81892ebf71
commit c5e0f83cb5

View file

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