mirror of
https://github.com/nicolargo/glances.git
synced 2026-03-12 19:06:48 -04:00
Correct an issue with VMs bin test
This commit is contained in:
@@ -22,7 +22,7 @@ from glances.secure import secure_popen
|
||||
MULTIPASS_PATH = '/snap/bin/multipass'
|
||||
MULTIPASS_VERSION_OPTIONS = 'version --format json'
|
||||
MULTIPASS_INFO_OPTIONS = 'info --format json'
|
||||
import_multipass_error_tag = not os.path.exists(MULTIPASS_PATH) and os.access(MULTIPASS_PATH, os.X_OK)
|
||||
import_multipass_error_tag = not os.path.exists(MULTIPASS_PATH) or not os.access(MULTIPASS_PATH, os.X_OK)
|
||||
|
||||
|
||||
class VmExtension(VmsExtension):
|
||||
|
||||
@@ -24,7 +24,7 @@ VIRSH_VERSION_OPTIONS = 'version'
|
||||
VIRSH_INFO_OPTIONS = 'list --all'
|
||||
VIRSH_DOMAIN_STATS_OPTIONS = 'domstats'
|
||||
VIRSH_DOMAIN_TITLE_OPTIONS = 'desc --title'
|
||||
import_virsh_error_tag = not os.path.exists(VIRSH_PATH) and os.access(VIRSH_PATH, os.X_OK)
|
||||
import_virsh_error_tag = not os.path.exists(VIRSH_PATH) or not os.access(VIRSH_PATH, os.X_OK)
|
||||
|
||||
|
||||
class VmExtension(VmsExtension):
|
||||
|
||||
Reference in New Issue
Block a user