Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small fix snapshot in windows os #325

Merged
merged 4 commits into from
Nov 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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