Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix parenthesis with len and error color #380

Merged
merged 1 commit into from

2 participants

@razzius

As a follow up to my pull request #379, I fixed the parenthesis in the len() check and added the error color for undeploy/remove. Sorry for the typos.

@nlake44
Owner

:+1:

@nlake44 nlake44 merged commit ccdbd7c into from
@nlake44
Owner

This pull is linked to: #379

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 24, 2014
  1. @razzius
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/appscale
View
6 bin/appscale
@@ -80,7 +80,7 @@ elif command == "status":
sys.exit(1)
elif command == "deploy":
try:
- if len(sys.argv != 3):
+ if len(sys.argv) != 3:
cprint("Usage: appscale deploy <path to your app>", 'red')
sys.exit(1)
@@ -90,8 +90,8 @@ elif command == "deploy":
sys.exit(1)
elif command == "undeploy" or command == "remove":
try:
- if len(sys.argv != 3):
- cprint("Usage: appscale {0} <path to your app>".format(command))
+ if len(sys.argv) != 3:
+ cprint("Usage: appscale {0} <path to your app>".format(command), 'red')
sys.exit(1)
appscale.undeploy(sys.argv[2])
Something went wrong with that request. Please try again.