Commit a396c8dd authored by Lionel Morin's avatar Lionel Morin
Browse files

Merge branch 'feature/amelioration' into 'develop'

Feature/amelioration

See merge request !14
parents b2399630 060a5b10
......@@ -45,7 +45,7 @@ function describe(serverid) {
return dispatch => {
const serverId = parseInt(serverid, 10);
dispatch(request(serverId));
return Zephir.v1.server.describe({serverid: serverId})
return Zephir.v1.server.describe({serverid: serverId, environment: true})
.then(({response}) => {
dispatch(success(response));
return response;
......@@ -154,10 +154,11 @@ export const SERVER_PEERING_CONF_GET_FAILURE = 'SERVER_PEERING_CONF_GET_FAILURE'
function getPeeringConf(serverId) {
return dispatch => {
dispatch(request(serverId));
return Zephir.v1.server.peeringConf.get({ serverid: serverId })
.then(({response}) => {
dispatch(success(response));
return response;
return Zephir.v1.server.describe({serverid: serverId, peering: true})
.then(({response}) => {
response = response.peering;
dispatch(success(response));
return response;
})
.catch(error => {
dispatch(failure(error));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment