Refactor all app.location usages to config.appFqdn(app)

This commit is contained in:
Johannes Zellner
2017-11-09 23:08:22 +01:00
parent 1dfa689d1c
commit e43e904622
8 changed files with 16 additions and 13 deletions

View File

@@ -51,7 +51,7 @@ var addons = require('./addons.js'),
function debugApp(app, args) {
assert(!app || typeof app === 'object');
var prefix = app ? (app.location || '(bare)') : '(no app)';
var prefix = app ? config.appFqdn(app) : '(no app)';
debug(prefix + ' ' + util.format.apply(util, Array.prototype.slice.call(arguments, 1)));
}
@@ -186,7 +186,7 @@ function createSubcontainer(app, name, cmd, options, callback) {
'/run': {}
},
Labels: {
'location': app.location,
'fqdn': config.appFqdn(app),
'appId': app.id,
'isSubcontainer': String(!isAppContainer)
},