Signed-off-by: Kefu Chai <kchai@redhat.com>
break
if not matches:
raise RuntimeError(
- "Could not find an image for %s %s",
- self.os_type,
- self.os_version,
- )
+ "Could not find an image for %s %s" %
+ (self.os_type, self.os_version))
return matches[0]
@property
obj = resp.json()
if not obj['count']:
raise RuntimeError(
- "Could not find an image for %s %s",
- self.os_type,
- self.os_version,
- )
+ "Could not find an image for %s %s" %
+ (self.os_type, self.os_version))
return obj['images'][0]
def set_image(self, host_id):