Skip to content

Commit

Permalink
ncm-opennebula: add missing schema check
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosimon committed Feb 2, 2024
1 parent e81af8b commit 9791f3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ncm-opennebula/src/main/pan/components/opennebula/common.pan
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ function is_consistent_datastore = {
};

if (exists(ds['ds_mad'])) {
if (ds['ds_mad'] == 'fs') {
if (ds['tm_mad'] != 'shared') {
error("for a fs datastore only 'shared' tm_mad is supported for the moment");
};
};
if (ds['ds_mad'] == 'dev') {
if (ds['tm_mad'] != 'dev') {
error("for a RDM datastore both ds_mad and tm_mad should have value 'dev'");
Expand Down

0 comments on commit 9791f3f

Please sign in to comment.