Merge remote-tracking branch 'origin/pr/230'

* origin/pr/230:
  Removed unnecessary 'needs restarting' icons for DisposableVMs in Qube Manager
This commit is contained in:
Marek Marczykowski-Górecki 2020-02-17 04:04:40 +01:00
當前提交 84ff5ffa09
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 063938BA42CFA724

查看文件

@ -393,8 +393,9 @@ class VmUpdateInfoWidget(QtWidgets.QWidget):
def update_outdated(self):
outdated_state = False
is_disposable = getattr(self.vm, 'auto_cleanup', False)
if self.vm.is_running():
if not is_disposable and self.vm.is_running():
if hasattr(self.vm, 'template') and self.vm.template.is_running():
outdated_state = "to-be-outdated"
@ -404,7 +405,8 @@ class VmUpdateInfoWidget(QtWidgets.QWidget):
outdated_state = "outdated"
break
if self.vm.klass in {'TemplateVM', 'StandaloneVM'} and \
if not is_disposable and \
self.vm.klass in {'TemplateVM', 'StandaloneVM'} and \
self.vm.features.get('updates-available', False):
outdated_state = 'update'