mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Revert "Merge branch 'unstable'"
This reverts commit929c337e8b, reversing changes made tob9bc73fd01.
This commit is contained in:
1 parent
d18293ae7c
commit
359abb0286
24 files changed
+217
-677
No files matched your search
@@ -407,25 +407,6 @@ class BaseManager:
|
||||
return os.path.basename(path)
|
||||
return path
|
||||
|
||||
@asyncio.coroutine
|
||||
def list_images(self):
|
||||
"""
|
||||
Return the list of available images for this VM type
|
||||
|
||||
:returns: Array of hash
|
||||
"""
|
||||
|
||||
try:
|
||||
files = os.listdir(self.get_images_directory())
|
||||
except FileNotFoundError:
|
||||
return []
|
||||
files.sort()
|
||||
images = []
|
||||
for filename in files:
|
||||
if filename[0] != ".":
|
||||
images.append({"filename": filename})
|
||||
return images
|
||||
|
||||
def get_images_directory(self):
|
||||
"""
|
||||
Get the image directory on disk
|
||||
|
||||
@@ -160,7 +160,7 @@ class VirtualBox(BaseManager):
|
||||
continue
|
||||
|
||||
@asyncio.coroutine
|
||||
def list_images(self):
|
||||
def get_list(self):
|
||||
"""
|
||||
Gets VirtualBox VM list.
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user