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
5ab2b771
Commit
5ab2b771
authored
Feb 23, 2010
by
Iustin Pop
Browse files
Loader: abort for unknown to-be-excluded instances
parent
fcbf0da4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Ganeti/HTools/Loader.hs
View file @
5ab2b771
...
...
@@ -186,7 +186,10 @@ mergeData um extags exinsts (nl, il, tags) =
csl
=
length
common_suffix
snl
=
Container
.
map
(
\
n
->
setName
n
(
stripSuffix
csl
$
nameOf
n
))
nl3
sil
=
Container
.
map
(
\
i
->
setName
i
(
stripSuffix
csl
$
nameOf
i
))
il4
in
Ok
(
snl
,
sil
,
tags
,
common_suffix
)
in
if
not
$
all
(`
elem
`
inst_names
)
exinsts
then
Bad
$
"Some of the excluded instances are unknown: "
++
show
(
exinsts
\\
inst_names
)
else
Ok
(
snl
,
sil
,
tags
,
common_suffix
)
-- | Checks the cluster data for consistency.
checkData
::
Node
.
List
->
Instance
.
List
...
...
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