fix(core): update

This commit is contained in:
2019-08-16 12:48:56 +02:00
parent fe3560caac
commit 020737e21b
9 changed files with 22 additions and 19 deletions

View File

@ -41,12 +41,15 @@ export class DockerNetwork {
Attachable: true,
Ingress: false
});
if (response.statusCode < 300 ) {
if (response.statusCode < 300) {
plugins.smartlog.defaultLogger.log('info', 'Created network successfully');
return await DockerNetwork.getNetworkByName(dockerHost, networkCreationDescriptor.Name);
} else {
plugins.smartlog.defaultLogger.log('error', 'There has been an error creating the wanted network');
return null
plugins.smartlog.defaultLogger.log(
'error',
'There has been an error creating the wanted network'
);
return null;
}
}