Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
dfc2c987
Commit
dfc2c987
authored
Oct 28, 2015
by
Leigh B Stoller
Browse files
Watch for negative violations, a bug in assign that Rob will look at.
parent
25c7f369
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCM.pm.in
View file @
dfc2c987
...
...
@@ -2520,7 +2520,7 @@ sub GetTicketAuxAux($$$$$$$$$$$)
$
errorcode
=
GENIRESPONSE_INSUFFICIENT_MEMORY
();
}
elsif
(
!defined($violations) &&
$
line
=~
/
Violations
:\
s
*(\
d
*)/
&&
$
1
!= 0) {
$
line
=~
/
Violations
:\
s
*(
[+-]?
\
d
*)/
&&
$
1
!= 0) {
$
violations
=
""
;
$
inviolations
=
1
;
$
inprecheck
=
0
;
...
...
@@ -2564,7 +2564,7 @@ sub GetTicketAuxAux($$$$$$$$$$$)
#
Attempt
to
parse
the
violations
into
something
human
readable
.
if
($
line
=~
/
no_connect
:\
s
*[
1
-
9
]/
||
$
line
=~
/
bandwidth
:\
s
*[
1
-
9
]/)
{
$
line
=~
/
bandwidth
:\
s
*[
+-]?[
1
-
9
]/)
{
$
errorstr
=
"Not enough bandwidth to connect some nodes"
;
$
errorcode
=
GENIRESPONSE_INSUFFICIENT_BANDWIDTH
();
}
...
...
Write
Preview
Supports
Markdown
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