Skip to content

Conversation

@kc284
Copy link

@kc284 kc284 commented Aug 28, 2025

No description provided.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@cloud.com>
}
}
}
return null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If return null, the var vdiRec = newVdiRecord(sr); will raise error.

break;
case "VDI.snapshot":
dummy.snapshot(c, driverParams);
vdi = VDI.getByNameLabel(c, TEST_VDI_NAME).iterator().next();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There may have an issue when VDI.getByNameLabel return [] ?

return vdiRec;
}

private SR findSrForVdi(Connection c) throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems no IOException ?

Copy link
Contributor

@xueqingz xueqingz Dec 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about

private SR findSrForVdi(Connection c) throws Exception {
   ...
   for(){ ...  }

  throw new Exception("No suitable SR found for VDI creation");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants