From 31cf6d82dcacdf16520f979ac75181cbd6c35051 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 2 Feb 2011 16:35:27 +0100 Subject: [PATCH] when omf friendly is selected: vref cannot safely be set automagically by the API, so set both tags here --- planetlab/slices/slice_add.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/planetlab/slices/slice_add.php b/planetlab/slices/slice_add.php index d932212..f258bda 100644 --- a/planetlab/slices/slice_add.php +++ b/planetlab/slices/slice_add.php @@ -95,6 +95,11 @@ if ( $_POST['add-slice'] ) { } else { drupal_set_message("Successfully set the 'omf_control' tag on slice"); } + if ($api->SetSliceVref($slice_id,'omf') != 'omf') { + drupal_set_error("Could not set the 'vref' tag on newly created slice..."); + } else { + drupal_set_message("Successfully set the 'vref' tag on slice"); + } } if ($person_ids) { -- 2.43.0