Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
8a12ce45
Commit
8a12ce45
authored
May 31, 2008
by
Iustin Pop
Browse files
Show cluster hypervisor for gnt-cluster info
Author: schreiberal Reviewed-by: iustinp
parent
917f91d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/cmdlib.py
View file @
8a12ce45
...
...
@@ -1999,6 +1999,7 @@ class LUQueryClusterInfo(NoHooksLU):
"export_version"
:
constants
.
EXPORT_VERSION
,
"master"
:
self
.
sstore
.
GetMasterNode
(),
"architecture"
:
(
platform
.
architecture
()[
0
],
platform
.
machine
()),
"hypervisor_type"
:
self
.
sstore
.
GetHypervisorType
(),
}
return
result
...
...
scripts/gnt-cluster
View file @
8a12ce45
...
...
@@ -141,6 +141,8 @@ def ShowClusterConfig(opts, args):
print
(
"Architecture (this node): %s (%s)"
%
(
result
[
"architecture"
][
0
],
result
[
"architecture"
][
1
]))
print
(
"Cluster hypervisor: %s"
%
result
[
"hypervisor_type"
])
return
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment