mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-21 14:37:47 +00:00
Display correctly the newly-created application id. Fix #117
This commit is contained in:
parent
0bb0e6ea4b
commit
9564b4e478
@ -51,8 +51,8 @@
|
||||
}, function(type, callback) {
|
||||
options.type = type;
|
||||
return resin.models.application.create(params.name, options.type).nodeify(callback);
|
||||
}, function(applicationId, callback) {
|
||||
console.info("Application created: " + params.name + " (" + options.type + ", id " + applicationId + ")");
|
||||
}, function(application, callback) {
|
||||
console.info("Application created: " + params.name + " (" + options.type + ", id " + application.id + ")");
|
||||
return callback();
|
||||
}
|
||||
], done);
|
||||
|
@ -56,8 +56,8 @@ exports.create =
|
||||
options.type = type
|
||||
resin.models.application.create(params.name, options.type).nodeify(callback)
|
||||
|
||||
(applicationId, callback) ->
|
||||
console.info("Application created: #{params.name} (#{options.type}, id #{applicationId})")
|
||||
(application, callback) ->
|
||||
console.info("Application created: #{params.name} (#{options.type}, id #{application.id})")
|
||||
return callback()
|
||||
|
||||
], done
|
||||
|
Loading…
Reference in New Issue
Block a user