示例#1
0
文件: imagecache.py 项目: yaochi/nova
    def _list_datastore_images(self, ds_path, datastore):
        """Return a list of the images present in _base.

        This method returns a dictionary with the following keys:
            - unexplained_images
            - originals
        """
        ds_browser = self._get_ds_browser(datastore.ref)
        originals = ds_util.get_sub_folders(self._session, ds_browser, ds_path)
        return {'unexplained_images': [], 'originals': originals}
示例#2
0
    def _list_datastore_images(self, ds_path, datastore):
        """Return a list of the images present in _base.

        This method returns a dictionary with the following keys:
            - unexplained_images
            - originals
        """
        ds_browser = self._get_ds_browser(datastore['ref'])
        originals = ds_util.get_sub_folders(self._session, ds_browser,
                                            ds_path)
        return {'unexplained_images': [],
                'originals': originals}
示例#3
0
 def _get_timestamp(self, ds_browser, ds_path):
     files = ds_util.get_sub_folders(self._session, ds_browser, ds_path)
     if files:
         for file in files:
             if file.startswith(TIMESTAMP_PREFIX):
                 return file