I tried to upload an openstack image with ansible. The task failed with
Failed validating 'type' in schema['properties']['tags']:: 400 Bad Request: On instance['tags']:: u"['testtag']": 'items': {'maxLength': 255, 'type': 'string'},: 'type': 'array'}: Provided object does not match schema 'image': u"['testtag']" is not of type 'array': {'description': u'List of strings related to the image',",
Here is my ansible task:
- os_image:
name: test_image
auth: "{{os_auth}}"
container_format: bare
disk_format: raw
tags: [testtag]
state: present
filename: /var/lib/test_image.raw
I have changed it to - testtag1 with new indent line however the error message its showing the quote:
u"['testtag1']" is not of type 'array': Failed validating 'type' in schema['properties']['tags']:: 400 Bad Request: On instance['tags']:: 'items': {'maxLength': 255, 'type': 'string'},: 'type': 'array'}: u"['testtag1']": {'description': u'List of strings related to the image',",