Skip to content

Commit

Permalink
placed NC_EVENT_PRE_BOOT hook before reading in instance XML, so the …
Browse files Browse the repository at this point in the history
…hook is useful
  • Loading branch information
dmitrii committed Jan 31, 2012
1 parent 2bdde68 commit cf1bc31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/handlers.c
Expand Up @@ -623,7 +623,6 @@ void *startup_thread (void * arg)
logprintfl (EUCAERROR, "[%s] error: failed to prepare images for instance (error=%d)\n", instance->instanceId, error);
goto shutoff;
}
xml = file2str (instance->libvirtFilePath);

if (instance->state==TEARDOWN) { // timed out in STAGING
goto free;
Expand All @@ -636,6 +635,7 @@ void *startup_thread (void * arg)
logprintfl (EUCAERROR, "[%s] cancelled instance startup via hooks\n", instance->instanceId);
goto shutoff;
}
xml = file2str (instance->libvirtFilePath);

save_instance_struct (instance); // to enable NC recovery

Expand Down

0 comments on commit cf1bc31

Please sign in to comment.