Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.package
Commits
d31f0283
Commit
d31f0283
authored
Jan 30, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated error messages
parent
3da40922
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
slapos-node/slapos-test
slapos-node/slapos-test
+10
-6
No files found.
slapos-node/slapos-test
View file @
d31f0283
...
...
@@ -306,17 +306,21 @@ class CronFile:
else
:
return
1
def
check
(
self
,
logger
):
elements
=
{
"slapformat"
:
self
.
slapformat
,
"slapgrid-ur"
:
self
.
slapgrid_ur
,
"slapgrid-sr"
:
self
.
slapgrid_sr
,
"slapgrid-cp"
:
self
.
slapgrid_cp
}
elements
=
{
'slapos node format'
:
self
.
slapformat
,
'slapos node report'
:
self
.
slapgrid_ur
,
'slapos node software'
:
self
.
slapgrid_sr
,
'slapos node instance'
:
self
.
slapgrid_cp
}
for
key
in
elements
:
if
elements
[
key
]
==
0
:
logger
.
error
(
"Your line for
%s
command does not seem right"
%
key
)
logger
.
error
(
"Your line for
'%s'
command does not seem right"
%
key
)
elif
elements
[
key
]
==
-
1
:
logger
.
error
(
"No line found for
%s
command"
%
key
)
logger
.
error
(
"No line found for
'%s'
command"
%
key
)
elif
elements
[
key
]
==
1
:
logger
.
info
(
"Line for
%s
command is good"
%
key
)
logger
.
info
(
"Line for
'%s'
command is good"
%
key
)
elif
elements
[
key
]
==
2
:
logger
.
error
(
"You have a duplicated line for
%s
command"
%
key
)
logger
.
error
(
"You have a duplicated line for
'%s'
command"
%
key
)
...
...
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