salt.states.glance.
image_present
(name, visibility='public', protected=None, checksum=None, location=None, wait_for=None, timeout=30)¶Checks if given image is present with properties set as specified.
An image should got through the stages 'queued', 'saving' before becoming 'active'. The attribute 'checksum' can only be checked once the image is active. If you don't specify 'wait_for' but 'checksum' the function will wait for the image to become active before comparing checksums. If you don't specify checksum either the function will return when the image reached 'saving'. The default timeout for both is 30 seconds.