Skip to content

Commit

Permalink
Upgrade to V3 OVH Api (2/2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimer47 committed Mar 7, 2020
1 parent ea48dc3 commit c17c153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OVHObjectStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class OVHStorage {

var token = res.headers['x-subject-token'];
var serviceCatalog = _.find(body.token.catalog, { type: 'object-store' });
var endpoint = _.find(serviceCatalog.endpoints, { region: _this.config.region });
var endpoint = _.find(serviceCatalog.endpoints, function(o) { return o.region_id === _this.config.region });

_this.token = { id: token };
_this.endpoint = endpoint;
Expand Down

0 comments on commit c17c153

Please sign in to comment.