Commit 14e3f214 authored by Leigh Stoller's avatar Leigh Stoller

Add call to insert profile images after adding a new profile, and

after updating the rspec with the new image urn after a snapshot.
parent ab7f3032
......@@ -741,6 +741,7 @@ sub DoSnapshot()
(defined($copyback_urn) ?
$copyback_urn : $version_url),
($update_profile eq "all" ? 1 : 0));
$profile->InsertImageRecords();
}
$instance->SetStatus("ready");
$aggregate->SetStatus("ready");
......
......@@ -664,6 +664,9 @@ if (defined($instance)) {
$profile->Delete(1);
exit(1);
}
$profile->Refresh();
$profile->InsertImageRecords();
# 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.
......
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