Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Unified Diff: impl/prod/info.go

Issue 1289323002: Fix miscellaneous prod bugs. (Closed) Base URL: https://github.com/luci/gae@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « impl/prod/datastore_key.go ('k') | impl/prod/taskqueue.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/prod/info.go
diff --git a/impl/prod/info.go b/impl/prod/info.go
index f513f3b04458cbc70720058561634d0b532a34da..ba398dd30616dc66812083d284a8d323fffdea7f 100644
--- a/impl/prod/info.go
+++ b/impl/prod/info.go
@@ -32,7 +32,11 @@ func (g giImpl) AccessToken(scopes ...string) (token string, expiry time.Time, e
return appengine.AccessToken(g, scopes...)
}
func (g giImpl) AppID() string {
- return appengine.AppID(g)
+ id := appengine.AppID(g)
+ if appengine.IsDevAppServer() {
+ id = "dev~" + id
dnj (Google) 2015/08/14 16:08:32 This primarily affected the key's namespace, which
+ }
+ return id
}
func (g giImpl) GetNamespace() string {
return g.Value(namespaceCopyKey).(string)
« no previous file with comments | « impl/prod/datastore_key.go ('k') | impl/prod/taskqueue.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698