parent
b4900ea626
commit
0c2ade98ba
@ -244,7 +244,11 @@ CLI.prototype._applyProfileOverrides =
|
||||
function _applyProfileOverrides(profile) {
|
||||
var self = this;
|
||||
['account', 'url', 'keyId', 'insecure'].forEach(function (field) {
|
||||
if (self.opts.hasOwnProperty(field)) {
|
||||
// We need to check `opts._order` to know if boolean opts
|
||||
// were specified.
|
||||
var specified = self.opts._order.filter(
|
||||
function (opt) { return opt.key === field; }).length > 0;
|
||||
if (specified) {
|
||||
profile[field] = self.opts[field];
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user