TACC-Cloud / agave-cli

The Tapis CLI
Other
4 stars 8 forks source link

richtext.py has inconsistent use of tabs and spaces in indentation #48

Closed georgebzheng closed 5 years ago

georgebzheng commented 5 years ago

Tried the following command: profiles-search --rich --filter first_name,last_name,email.username 'email=gzheng@netrias.com'

and got

(fcs-etl-reactor) MacBook-Pro:/Users/gzheng/projects/SD2/fcs-etl-reactor>profiles-search --rich --filter first_name,last_name,email,username 'email=juser@example.org' jq: error (at :1): Cannot index array with string "first_name" jq: error (at :1): Cannot index array with string "last_name" jq: error (at :1): Cannot index array with string "email" jq: error (at :1): Cannot index array with string "username" File "/Users/gzheng/projects/SD2/sd2e-cloud-cli/bin/libs/python/richtext.py", line 20 print result ^ TabError: inconsistent use of tabs and spaces in indentation

After fixing the tab and print problems locally, I got the following output for the same command:

jq: error (at :1): Cannot index string with string "username" jq: error (at :1): Cannot index array with string "email" | first_name | lastname | email.username | | --------- | ----_---- | -------------- | | George | Zheng | null |

alejandrox1 commented 5 years ago

This script is used by a deprecated tool.