diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2013-12-03 11:28:17 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2013-12-03 11:28:17 +0200 |
commit | 495c4a5cadf67b7c9b5e0c8b224f7b68c42c8da4 (patch) | |
tree | 39ec139daae669e0618bedd1a929edf0695d0662 /src/lssg.c | |
parent | 155a76453f41b7ad80af4f8b4bf0539f2df32498 (diff) | |
download | eclat-495c4a5cadf67b7c9b5e0c8b224f7b68c42c8da4.tar.gz eclat-495c4a5cadf67b7c9b5e0c8b224f7b68c42c8da4.tar.bz2 |
Bugfix and compatibility change in lssg/sg
* src/lssg.c (eclat_describe_security_groups): Fix the --name option.
* src/sg-cl.opt: Use -N as a shorcut for --next, and -n as the one
for --name, for compatibility with lssg.
Diffstat (limited to 'src/lssg.c')
-rw-r--r-- | src/lssg.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -29,14 +29,13 @@ eclat_describe_security_groups(eclat_command_env_t *env, int argc, char **argv) { "GroupId", MAP_GROUPID }, { "GroupName", MAP_GROUPNAME } }; - int n = !!name_option; parse_options(env, argc, argv, &i); argv += i; argc -= i; - translate_ids(argc, argv, rt[n].map); + translate_ids(argc, argv, rt[name_option].map); - describe_query_create(env, argc, argv, rt[n].resid); + describe_query_create(env, argc, argv, rt[name_option].resid); return 0; } |