コード例 #1
0
ファイル: views.py プロジェクト: cclauss/ops.Validator
 def refresh(self, request=None):
     """ Update image list from local configuration """
     LOG.info("Refreshing image db")
     images_cleanup()
     for s in DockerManager().list_images():
         instance = Image()
         instance.name = s['name']
         instance.version = s['version']
         instance.dockerfile = s['dockerfile']
         instance.system = s['system']
         instance.tag = s['tag']
         instance.save()
     return self.list(None)
コード例 #2
0
ファイル: views.py プロジェクト: ging/fiware-validator
 def refresh(self, request=None):
     """ Update image list from local configuration """
     LOG.info("Refreshing image db")
     images_cleanup()
     for s in DockerManager().list_images():
         instance = Image()
         instance.name = s['name']
         instance.version = s['version']
         instance.dockerfile = s['dockerfile']
         instance.system = s['system']
         instance.tag = s['tag']
         instance.save()
     return self.list(None)