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
7d0d70eb
Commit
7d0d70eb
authored
Jul 06, 2012
by
Leigh B Stoller
Browse files
Watch for NULL destroyed/manifest in ReadHistoryRecords() to
avoid warnings from the Frontier library.
parent
fcd324ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCH.pm.in
View file @
7d0d70eb
...
...
@@ -1359,11 +1359,22 @@ sub ReadHistoryRecords($)
$
blob
{
'creator_urn'
}
=
$
row
->{
'creator_urn'
};
$
blob
{
'creator_uuid'
}
=
$
row
->{
'creator_uuid'
};
$
blob
{
'created'
}
=
$
row
->{
'created'
};
$
blob
{
'destroyed'
}
=
$
row
->{
'destroyed'
};
$
blob
{
'manifest'
}
=
$
row
->{
'manifest'
};
if
(
defined
($
row
->{
'destroyed'
}))
{
$
blob
{
'destroyed'
}=
$
row
->{
'destroyed'
};
}
else
{
$
blob
{
'destroyed'
}=
''
;
}
if
(
defined
($
row
->{
'manifest'
}))
{
$
blob
{
'manifest'
}
=
$
row
->{
'manifest'
};
}
else
{
$
blob
{
'manifest'
}
=
""
;
}
push
(@
results
,
\%
blob
);
}
#
Slow
down
the
GMOC
queries
.
sleep
(
10
);
return
GeniResponse
->
Create
(
GENIRESPONSE_SUCCESS
,
\@
results
);
}
...
...
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