equal
deleted
inserted
replaced
978 return |
978 return |
979 |
979 |
980 try: |
980 try: |
981 ua = self._archive_manager.getArchive(image) |
981 ua = self._archive_manager.getArchive(image) |
982 except Exception as ex: |
982 except Exception as ex: |
983 reason = ex.get_payload().info |
983 if isinstance(ex, rad.client.ObjectError): |
|
984 reason = ex.get_payload().info |
|
985 else: |
|
986 reason = str(ex) |
984 raise exception.ImageUnacceptable( |
987 raise exception.ImageUnacceptable( |
985 image_id=instance['image_ref'], |
988 image_id=instance['image_ref'], |
986 reason=reason) |
989 reason=reason) |
987 |
990 |
988 # Validate the image at this point to ensure: |
991 # Validate the image at this point to ensure: |