Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
ad6cffe4
Commit
ad6cffe4
authored
15 years ago
by
Iustin Pop
Browse files
Options
Downloads
Patches
Plain Diff
Fix instance listing for non-redundant case
parent
c4ef235b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Ganeti/HTools/Cluster.hs
+4
-1
4 additions, 1 deletion
Ganeti/HTools/Cluster.hs
with
4 additions
and
1 deletion
Ganeti/HTools/Cluster.hs
+
4
−
1
View file @
ad6cffe4
...
@@ -708,7 +708,10 @@ printInsts nl il =
...
@@ -708,7 +708,10 @@ printInsts nl il =
helper
inst
=
printf
"%2s %-*s %-*s %-*s"
helper
inst
=
printf
"%2s %-*s %-*s %-*s"
" "
m_name
(
Instance
.
name
inst
)
" "
m_name
(
Instance
.
name
inst
)
m_nnm
(
Container
.
nameOf
nl
(
Instance
.
pNode
inst
))
m_nnm
(
Container
.
nameOf
nl
(
Instance
.
pNode
inst
))
m_nnm
(
Container
.
nameOf
nl
(
Instance
.
sNode
inst
))
m_nnm
(
let
sdx
=
Instance
.
sNode
inst
in
if
sdx
==
Node
.
noSecondary
then
""
else
Container
.
nameOf
nl
sdx
)
header
=
printf
"%2s %-*s %-*s %-*s"
header
=
printf
"%2s %-*s %-*s %-*s"
" "
m_name
"Name"
m_nnm
"Pri_node"
m_nnm
"Sec_node"
::
String
" "
m_name
"Name"
m_nnm
"Pri_node"
m_nnm
"Sec_node"
::
String
in
unlines
(
header
:
map
helper
sil
)
in
unlines
(
header
:
map
helper
sil
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment