Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
f6a93326
Commit
f6a93326
authored
Oct 26, 2009
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SliceTicket(); given a ticket, return the slice.
parent
24a20def
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
protogeni/lib/GeniTicket.pm.in
protogeni/lib/GeniTicket.pm.in
+18
-0
No files found.
protogeni/lib/GeniTicket.pm.in
View file @
f6a93326
...
...
@@ -508,6 +508,24 @@ sub SetSlice($$)
return
0
;
}
sub
SliceTicket
($$)
{
my
($
class
,
$
slice
)
=
@
_
;
my
$
slice_uuid
=
$
slice
->
uuid
();
my
$
query_result
=
DBQueryWarn
(
"select idx from geni_tickets "
.
"where slice_uuid='$slice_uuid'"
);
return
undef
if
(
!$query_result);
return
undef
if
($
query_result
->
numrows
!= 1);
my
($
idx
)
=
$
query_result
->
fetchrow_array
();
return
GeniTicket
->
Lookup
($
idx
);
}
#
#
Return
the
rspec
in
XML
for
the
ticket
.
#
...
...
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