Skip to content

Commit 1402160

Browse files
committed
Fix bug: scs-0102-prop-image-source ABORT if image_source not set
Signed-off-by: Matthias Büchse <[email protected]>
1 parent a32a69e commit 1402160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/iaas/scs_0102_image_metadata/image_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def compute_scs_0102_prop_image_source(images):
227227
img
228228
for img in images
229229
if img.properties.get('image_source') != 'private'
230-
if not is_url(img.properties.get('image_source'))
230+
if not is_url(img.properties.get('image_source', ''))
231231
]
232232
_log_error('property image_source INVALID (url or "private")', offenders)
233233
return not offenders

0 commit comments

Comments
 (0)