Commit c4c24d16 authored by Leigh B Stoller's avatar Leigh B Stoller

Tweaks to previous revision.

parent 1f8e054b
......@@ -583,6 +583,7 @@ if (defined($instance)) {
$pwebtask->cloning(1);
# And what is being cloned.
$pwebtask->cloning_instance($instance->uuid());
$pwebtask->image_name($iwebtask->image_name());
#
# Exit and leave child to poll.
......@@ -635,9 +636,10 @@ if (defined($instance)) {
$profile->Delete(1);
exit(1);
}
# Tell web interface cloning has finished
# Tell web interface cloning has finished. But leave cloning_instance
# set since otherwise the web interface will no longer be able to
# figure out what to tell the user.
$pwebtask->cloning(0);
$pwebtask->cloning_instance(undef);
$profile->Unlock();
exit(0);
}
......
......@@ -57,10 +57,6 @@ function Do_CloneStatus()
SPITAJAX_ERROR(1, "No status descriptor found");
return;
}
if (!$webtask->TaskValue("cloning")) {
SPITAJAX_ERROR(1, "Cloning has terminated");
return;
}
if (!$webtask->TaskValue("cloning_instance")) {
SPITAJAX_ERROR(1, "The cloned experiment is gone");
return;
......
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