summaryrefslogtreecommitdiffabout
path: root/src/startstop.c
authorSergey Poznyakoff <gray@gnu.org.ua>2013-04-26 14:18:53 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2013-04-26 14:48:21 (GMT)
commit699ba6cd496d8401959a0581a1d49c448d3f3c7c (patch) (unidiff)
treee576553ef6531cdf7b1f9b375036f9dd28f2332d /src/startstop.c
parentaf02bbe4ab84ddd6a5ec8da3bab0fa360e8bded2 (diff)
downloadeclat-699ba6cd496d8401959a0581a1d49c448d3f3c7c.tar.gz
eclat-699ba6cd496d8401959a0581a1d49c448d3f3c7c.tar.bz2
Improve ID mapping.
* doc/eclat.conf.5: Update. * src/cmdline.opt: New option --no-translate (-X) * src/config.c (eclat_kw): New statement: translate. * src/eclat.c (main): override the value of translation_enabled from the command line. * src/eclat.h (translate_option): Rename to translation_enabled. All uses changed. (MAP_IMAGE,MAP_INSTANCE) (MAP_GROUPID,MAP_GROUPNAME) (MAP_SNAPSHOT,MAP_VOLUME) (MAP_AZ,MAP_REG): New defines, to use instead of literal map names. All sources updated accordingly. * src/util.c (translate_option): Rename to translation_enabled. (translate_ids): It is not an error if the name is not found in the map. Use it as the resource ID in that case.
Diffstat (limited to 'src/startstop.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/startstop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/startstop.c b/src/startstop.c
index 7ffb5bb..fa36ed7 100644
--- a/src/startstop.c
+++ b/src/startstop.c
@@ -35,7 +35,7 @@ start_stop_instance(eclat_command_env_t *env, int argc, char **argv)
35 35
36 if (argc == 0) 36 if (argc == 0)
37 die(EX_USAGE, "no instance ids"); 37 die(EX_USAGE, "no instance ids");
38 translate_ids(argc, argv, "InstanceId"); 38 translate_ids(argc, argv, MAP_INSTANCE);
39 39
40 strcpy(buf, "InstanceId."); 40 strcpy(buf, "InstanceId.");
41 bend = buf + strlen(buf); 41 bend = buf + strlen(buf);

Return to:

Send suggestions and report system problems to the System administrator.