Commit f9e18844 authored by Leigh B. Stoller's avatar Leigh B. Stoller

If the underlying experiment is already gone when releasing a ticket,

just delete the ticket instead of throwing an error.
parent 6c1095ff
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2008 University of Utah and the Flux Group.
# Copyright (c) 2008-2009 University of Utah and the Flux Group.
# All rights reserved.
#
package GeniTicket;
......@@ -555,10 +555,16 @@ sub Release($)
{
my ($self) = @_;
return undef
return -1
if (! ref($self));
my $experiment = Experiment->Lookup($self->slice_uuid());
if (!defined($experiment)) {
#
# Cannot be any nodes if no experiment.
#
return $self->Delete();
}
my $pid = $experiment->pid();
my $eid = $experiment->eid();
my @nodeids = ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment