Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
After the recent issues reported with imgadm module/state on SmartOS I did a few more tests and two small improvement should be made.
Up until now imgadm module assumed that docker images were always called
account/image:tag
, but this is not always the case, e.g.fedora:latest
is a valid docker image too.auto_import would not import image for disks, this resulted in confusing errors about image_size.
What issues does this PR fix or reference?
N/a
Previous Behavior
Docker images like
fedora:latest
could not be imported.Unhelpful error when disk images were missing, even with auto_import set to true.
New Behavior
Docker images like
fedora:latest
can now be imported. They might still not run properly, but at least now they can be imported.With auto_import set to true we now also import disks images, this confusing error is still present with auto_import set to false, but we pass it directly from upstream (vmadm). So not much we can do about it in salt.
Tests written?
No
Commits signed with GPG?
No