diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-02-02 14:53:19 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-02-02 15:12:25 +0200 |
commit | 4a72c67c34b1c5b348e61ab900fb0b64305b9f97 (patch) | |
tree | bd3c91c42a14ac50f2406ba8153b04d2099cd9ab /etc | |
parent | f9536d8285625d4263c5b2dd0ab2a6773dd2b618 (diff) | |
download | eclat-4a72c67c34b1c5b348e61ab900fb0b64305b9f97.tar.gz eclat-4a72c67c34b1c5b348e61ab900fb0b64305b9f97.tar.bz2 |
New options: --check-permissions and --add-parameter
* NEWS: Update.
* doc/eclat-stop.1: Update.
* doc/eclat.1man: Update.
* etc/default.fln: Special handling for DryRunOperation
and UnauthorizedOperation codes.
* lib/paramlist.c: New file.
* lib/Makefile.am (libeclat_a_SOURCES): Add paramlist.c
* lib/forlan.c: New function dequote.
* lib/libeclat.h (eclat_request_add_param0)
(ec2_param_free, ec2_param_list_create)
(ec2_param_list_append)
(eclat_request_add_param_list): New protos.
* lib/reqcreat.c (ec2_param_free): Remove static qualifier.
* src/stop-cl.opt: New file.
* src/Makefile.am (OPTFILES): Add stop-cl.opt
* src/cmdline.opt: New options: --check-permissions and --add-parameter.
* src/eclat.c (extra_param): New global.
(find_format): print error message if no such format is found.
* src/startstop.c (eclat_stop_instance): Use parse_stop_options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/default.fln | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/etc/default.fln b/etc/default.fln index 178af18..d3da5eb 100644 --- a/etc/default.fln +++ b/etc/default.fln @@ -15,8 +15,15 @@ along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ if (.Response.Errors) { - error("Error: ",.Response.Errors.Error.Message,"\n"); - exit(1); + if (.Response.Errors.Error.Code[DryRunOperation]) { + print(dequote(.Response.Errors.Error.Message),"\n"); + } else if (.Response.Errors.Error.Code[UnauthorizedOperation]) { + error(dequote(.Response.Errors.Error.Message),"\n"); + exit(1); + } else { + error("Error: ",dequote(.Response.Errors.Error.Message),"\n"); + exit(1); + } } else { error("Unrecognized response:\n"); dump(.); |