Use getattr properly in legacy shell
Use getattr properly in legacy shell

Fixes bug 1131703

Change-Id: If97f422af170c29785d2bf8884fafff979031e14

klmitch/python-glanceclient,mmasaki/python-glanceclient,JioCloud/python-glanceclient,varunarya10/python-glanceclient,ntt-sic/python-glanceclient,metacloud/python-glanceclient,mmasaki/python-glanceclient,openstack/python-glanceclient,alexpilotti/python-glanceclient,openstack/python-glanceclient,citrix-openstack-build/python-glanceclient,alexpilotti/python-glanceclient,klmitch/python-glanceclient,metacloud/python-glanceclient,JioCloud/python-glanceclient,citrix-openstack-build/python-glanceclient,ntt-sic/python-glanceclient,varunarya10/python-glanceclient