Add a TODO that restore should only be done in a fresh image

This commit is contained in:
Girish Ramakrishnan
2014-10-10 15:57:09 -07:00
parent b8b72ffea4
commit 05db80fdae
+1
View File
@@ -171,6 +171,7 @@ function restore(body, callback) {
// TODO is there a better way?
callback(null);
// TODO make sure you can restore only once ever
execFile(SUDO, [ RESTORE_CMD, body.restoreUrl ], { }, function (error, stdout, stderr) {
if (error) {
console.error('Restore failed.', error, stdout, stderr);