mirror of
https://github.com/google/nomulus
synced 2026-01-07 14:05:44 +00:00
Fixes "Insufficient permission" error in export-snapshot task
Removed "run_as_a_service" parameter from backup.create command in DatastoreBackupService. This parameter can't be used externally, and is apparently no longer needed.
This commit is contained in:
@@ -72,8 +72,7 @@ public class DatastoreBackupService {
|
|||||||
.param("name", name + "_") // Add underscore since the name will be used as a prefix.
|
.param("name", name + "_") // Add underscore since the name will be used as a prefix.
|
||||||
.param("filesystem", "gs")
|
.param("filesystem", "gs")
|
||||||
.param("gs_bucket_name", gcsBucket)
|
.param("gs_bucket_name", gcsBucket)
|
||||||
.param("queue", queue)
|
.param("queue", queue);
|
||||||
.param("run_as_a_service", String.valueOf(true));
|
|
||||||
for (String kind : kinds) {
|
for (String kind : kinds) {
|
||||||
options.param("kind", kind);
|
options.param("kind", kind);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,7 +96,6 @@ public class DatastoreBackupServiceTest {
|
|||||||
.param("filesystem", "gs")
|
.param("filesystem", "gs")
|
||||||
.param("gs_bucket_name", "somebucket")
|
.param("gs_bucket_name", "somebucket")
|
||||||
.param("queue", "default")
|
.param("queue", "default")
|
||||||
.param("run_as_a_service", "true")
|
|
||||||
.param("kind", "foo")
|
.param("kind", "foo")
|
||||||
.param("kind", "bar"));
|
.param("kind", "bar"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user