[Bug 531453] [NEW] euca-describe-instances shows state "running ", not "running"

Scott Moser smoser at canonical.com
Wed Mar 3 16:30:15 GMT 2010


Public bug reported:

Binary package hint: euca2ools

euca-describe-instances appends a space to the instance state in its output.
The output should be straight tab delimited output.

This makes something the following fail:
   awk '-F\t' '$6 = "running" && { print $0 }'

Additionally the code is flawed in that it does things like:

     if instance.instance_type:
         instance_string += ' \t%s' % instance.instance_type

Ie, instance_type (and its associated tab) is only appended if
instance_type is true.

In general, none of the checks should ever fail, but if they did, the
output would not include an empty field, but rather *no* field.

ProblemType: Bug
Architecture: amd64
Date: Wed Mar  3 10:23:45 2010
DistroRelease: Ubuntu 10.04
Package: euca2ools 1.2-0ubuntu4
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-15.22-server
SourcePackage: euca2ools
Uname: Linux 2.6.32-15-server x86_64

** Affects: eucalyptus
     Importance: Undecided
         Status: New

** Affects: euca2ools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug lucid

-- 
euca-describe-instances shows state "running ", not "running"
https://bugs.launchpad.net/bugs/531453
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to euca2ools in ubuntu.



More information about the Ubuntu-server-bugs mailing list