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
f44d3d18
Commit
f44d3d18
authored
Jun 28, 2013
by
Leigh B Stoller
Browse files
Ug, loadinfo ADDR is a URL which can have = signs. Adjust parsing.
parent
cbfa24fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/libsetup.pm
View file @
f44d3d18
...
...
@@ -2162,7 +2162,17 @@ sub getloadinfo($)
foreach
my
$kv
(
@kvs
)
{
my
@kvpair
=
split
(
/=/
,
$kv
);
if
(
scalar
(
@kvpair
)
!=
2
)
{
warn
("
*** WARNING: malformed key-val pair in loadinfo:
$kv
\n
");
#
# Ick. ADDR is a URL.
#
if
(
$kvpair
[
0
]
eq
"
ADDR
")
{
my
$key
=
shift
(
@kvpair
);
$resh
{
$key
}
=
join
("
=
",
@kvpair
);
}
else
{
warn
("
*** WARNING:
"
.
"
malformed key-val pair in loadinfo:
$kv
\n
");
}
}
else
{
$resh
{
$kvpair
[
0
]}
=
$kvpair
[
1
];
...
...
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