Comment 2 for bug 485106

Revision history for this message
Scott Moser (smoser) wrote :

I'd also like to request the following:
 if no --config argument is found, and EUCA2OOLS_CFG is set (or some other environment variable) then it expected to have a path to a config file. ie:

# read default config
unset EUCA2OOLS_CFG; euca-describe-instances

# read /tmp/my.env.eucarc
export EUCA2OOLS_CFG=/tmp/my.env.eucarc; euca-describe-instances

# read /tmp/my.cmdline.cfg
unset EUCA2OOLS_CFG; euca-describe-instances --config /tmp/my.cmdline.cfg

# read /tmp/my.cmdline.cfg
export EUCA2OOLS_CFG=/tmp/my.env.eucarc; euca-describe-instances --config /tmp/my.cmdline.cfg

The benefit of this is that tools that invoke the euca2ools can be blissfully ignorant of --config, rather than having to explicitly support it.