Skip to content

Commit

Permalink
small fix snapshot in windows os (#325)
Browse files Browse the repository at this point in the history
* fix cli image snapshot

* fix

* fix
  • Loading branch information
alexandershpak authored and Railag committed Nov 6, 2018
1 parent a3841d2 commit efcd570
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/helpers/error-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module.exports = {
INVALID_MICROSERVICE_USER: 'Invalid microservice user or UUID',
ROUTE_NOT_FOUND: 'Route not found',
IMAGE_SNAPSHOT_WITHOUT_FOG: 'Can not run image snapshot for microservice without ioFog.',
IMAGE_SNAPSHOT_NOT_AVAILABLE: 'Image snapshot is not available for this microservice.',
FILE_DOES_NOT_EXIST: 'File does not exist.',
RESTRICTED_PUBLISHER: "You are not allowed to add catalog item as 'Eclipse ioFog' publisher",
REQUIRED_FOG_NODE: 'ioFog node is required.',
Expand Down
2 changes: 1 addition & 1 deletion src/services/diagnostic-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const getMicroserviceImageSnapshot = async function (microserviceUuid, user, isC
imageSnapshot: ''
};

if (!microservice.imageSnapshot) {
if (!microservice.imageSnapshot || microservice.imageSnapshot === 'get_image') {
throw new Errors.ValidationError(ErrorMessages.IMAGE_SNAPSHOT_NOT_AVAILABLE)
}
let _path = microservice.imageSnapshot;
Expand Down

0 comments on commit efcd570

Please sign in to comment.