aboutsummaryrefslogtreecommitdiff
path: root/etc/describe-instance-attribute.fln
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2015-01-22 17:32:33 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2015-01-22 17:49:08 +0200
commitf158212743c51bf1ebd44d27ee07a6c2b4867426 (patch)
treed50ec63da5173113bae52b9dfa39bf2ab370cfc6 /etc/describe-instance-attribute.fln
parent90262e24c2a3ec8b1e3fa189f80b41166a347555 (diff)
downloadeclat-f158212743c51bf1ebd44d27ee07a6c2b4867426.tar.gz
eclat-f158212743c51bf1ebd44d27ee07a6c2b4867426.tar.bz2
Improve setting UserData attribute. Change lsistat defaults.
* NEWS: Update. * doc/eclat-setiattr.1: Document new options. * doc/eclat-lsistat.1: Update. * etc/describe-instance-attribute.fln: Decode userData. * grecs: Upgrade. * src/setiattr-cl.opt: New file. * src/Makefile.am (OPTFILES): Add setiattr-cl.opt * src/setiattr.c: Encode UserData. * src/eclat.h (read_file): New proto. * src/lsistat-cl.opt: New option -r (--running). * src/lsistat.c: Change default to show all instances, no matter their state. * src/mkinst-cl.opt (read_user_data): Remove. Use read_file instead. * src/sg.c: Add missing include. * src/util.c (read_file): New function.
Diffstat (limited to 'etc/describe-instance-attribute.fln')
-rw-r--r--etc/describe-instance-attribute.fln3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/describe-instance-attribute.fln b/etc/describe-instance-attribute.fln
index 49f6ff7..49b6b35 100644
--- a/etc/describe-instance-attribute.fln
+++ b/etc/describe-instance-attribute.fln
@@ -17,12 +17,13 @@
if (.DescribeInstanceAttributeResponse.instanceType.value ||
.DescribeInstanceAttributeResponse.kernel.value ||
.DescribeInstanceAttributeResponse.ramdisk.value ||
- .DescribeInstanceAttributeResponse.userData.value ||
.DescribeInstanceAttributeResponse.disableApiTermination.value ||
.DescribeInstanceAttributeResponse.instanceInitiatedShutdownBehavior.value ||
.DescribeInstanceAttributeResponse.rootDeviceName.value ||
.DescribeInstanceAttributeResponse.ebsOptimized.value)
print(last,"\n");
+else if (.DescribeInstanceAttributeResponse.userData.value)
+ print(decode(last), "\n");
else if (.DescribeInstanceAttributeResponse.blockDeviceMapping)
for (dev in .DescribeInstanceAttributeResponse.blockDeviceMapping.item) {
print(dev.deviceName,"\t", dev.ebs.volumeId, "\t", dev.ebs.status,

Return to:

Send suggestions and report system problems to the System administrator.