Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.core
Commits
5f90be47
Commit
5f90be47
authored
Dec 01, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment out _formatXMLError.
Undefined. pylint please.
parent
b2d1578e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
slapos/grid/slapgrid.py
slapos/grid/slapgrid.py
+8
-5
No files found.
slapos/grid/slapgrid.py
View file @
5f90be47
...
...
@@ -276,7 +276,7 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple):
maximal_delay
=
int
(
option_dict
.
get
(
"maximal_delay"
,
"0"
))
if
maximal_delay
>
0
:
duration
=
int
(
maximal_delay
*
random
())
logging
.
info
(
"Sleeping for %s seconds. To disable this feature, "
\
logging
.
info
(
"Sleeping for %s seconds. To disable this feature, "
"check --now parameter in slapgrid help."
%
duration
)
time
.
sleep
(
duration
)
...
...
@@ -975,9 +975,10 @@ class Slapgrid(object):
try
:
document
=
etree
.
parse
(
string_to_validate
)
except
(
etree
.
XMLSyntaxError
,
etree
.
DocumentInvalid
)
as
e
:
logger
.
info
(
'Failed to parse this XML report : %s
\
n
%s'
%
\
(
to_be_validated
,
_formatXMLError
(
e
)))
logger
.
error
(
_formatXMLError
(
e
))
logger
.
info
(
'Failed to parse this XML report : %s'
%
to_be_validated
)
# XXX-Cedric: _formatXMLError has never been commited.
#logger.error(_formatXMLError(e))
logger
.
error
(
e
)
return
False
if
xmlschema
.
validate
(
document
):
...
...
@@ -1021,7 +1022,9 @@ class Slapgrid(object):
except
(
etree
.
XMLSyntaxError
,
etree
.
DocumentInvalid
)
as
e
:
self
.
logger
.
info
(
"Failed to parse %s."
%
(
usage_string
))
self
.
logger
.
error
(
e
)
raise
_formatXMLError
(
e
)
# XXX-Cedric: _formatXMLError has never been commited.
#raise _formatXMLError(e)
raise
except
Exception
:
raise
"Failed to generate XML report."
...
...
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