From d30dc07a318dd4316b6f9e58583e3f43f1298e9d Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sat, 28 Nov 2015 11:49:27 +0100 Subject: [PATCH] baculum: Fix update pool action when no volumes in pool --- gui/baculum/protected/Class/API.php | 3 ++- gui/baculum/protected/Class/Errors.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gui/baculum/protected/Class/API.php b/gui/baculum/protected/Class/API.php index 47b59f3123..ad7a0d7bc0 100644 --- a/gui/baculum/protected/Class/API.php +++ b/gui/baculum/protected/Class/API.php @@ -30,7 +30,8 @@ class API extends TModule { private $allowedErrors = array( GenericError::ERROR_NO_ERRORS, - BconsoleError::ERROR_INVALID_COMMAND + BconsoleError::ERROR_INVALID_COMMAND, + PoolError::ERROR_NO_VOLUMES_IN_POOL_TO_UPDATE ); private function getConnection() { diff --git a/gui/baculum/protected/Class/Errors.php b/gui/baculum/protected/Class/Errors.php index 45e3d58410..410a3ca878 100644 --- a/gui/baculum/protected/Class/Errors.php +++ b/gui/baculum/protected/Class/Errors.php @@ -77,7 +77,7 @@ class PoolError extends GenericError { const ERROR_NO_VOLUMES_IN_POOL_TO_UPDATE = 41; const MSG_ERROR_POOL_DOES_NOT_EXISTS = 'Pool with inputed poolid does not exist.'; - const MSG_NO_VOLUMES_IN_POOL_TO_UPDATE= 'Pool with inputed poolid does not contain any volume to update.'; + const MSG_ERROR_NO_VOLUMES_IN_POOL_TO_UPDATE= 'Pool with inputed poolid does not contain any volume to update.'; } class JobError extends GenericError { @@ -115,4 +115,4 @@ class BVFSError extends GenericError { const MSG_ERROR_JOB_DOES_NOT_EXISTS = 'Job with inputed jobid does not exist.'; const MSG_ERROR_INVALID_PATH = 'Inputed path for restore is invalid. Proper format is b2[0-9]+.'; } -?> \ No newline at end of file +?> -- 2.39.5