diff --git a/src/datastore_mad/one_datastore b/src/datastore_mad/one_datastore index 9f62176cf8..ba5653805b 100755 --- a/src/datastore_mad/one_datastore +++ b/src/datastore_mad/one_datastore @@ -20,21 +20,15 @@ DRIVER_NAME=`basename $0 | cut -d. -f1` if [ -z "${ONE_LOCATION}" ]; then - DRIVERRC=/etc/one/${DRIVER_NAME}/${DRIVER_NAME}rc MADCOMMON=/usr/lib/one/mads/madcommon.sh VAR_LOCATION=/var/lib/one else - DRIVERRC=$ONE_LOCATION/etc/${DRIVER_NAME}/${DRIVER_NAME}rc MADCOMMON=$ONE_LOCATION/lib/mads/madcommon.sh VAR_LOCATION=$ONE_LOCATION/var fi . $MADCOMMON -# Export the im_mad specific rc - -export_rc_vars $DRIVERRC - # Go to var directory ONE_LOCATION/var or /var/lib/one cd $VAR_LOCATION diff --git a/src/datastore_mad/one_datastore.rb b/src/datastore_mad/one_datastore.rb index dc00fcb5a4..acbef1839c 100755 --- a/src/datastore_mad/one_datastore.rb +++ b/src/datastore_mad/one_datastore.rb @@ -119,7 +119,7 @@ class DatastoreDriver < OpenNebulaDriver end def do_image_action(id, ds, action, arguments) - return if not is_available?(ds,id,:mv) + return if not is_available?(ds,id,action) path = File.join(@local_scripts_path, ds) cmd = File.join(path, ACTION[action].downcase)