File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -409,9 +409,9 @@ def apps_destroy(self, args):
409409 """
410410 Destroy an application
411411
412- Usage: deis apps:destroy [--app=<app>] [--confirm=<confirm>]
412+ Usage: deis apps:destroy <id> [--confirm=<confirm>]
413413 """
414- app = args .get ('<app >' )
414+ app = args .get ('<id >' )
415415 if not app :
416416 app = self ._session .app
417417 confirm = args .get ('--confirm' )
@@ -1124,10 +1124,10 @@ def keys_add(self, args):
11241124 inp = raw_input ('Which would you like to use with Deis? ' )
11251125 try :
11261126 path = pubkeys [int (inp ) - 1 ]
1127- key_id = path .split (os .path .sep )[- 1 ].replace ('.pub' , '' )
11281127 except :
11291128 print ('Aborting' )
11301129 return
1130+ key_id = path .split (os .path .sep )[- 1 ].replace ('.pub' , '' )
11311131 with open (path ) as f :
11321132 data = f .read ()
11331133 match = re .match (r'^(ssh-...) ([^ ]+) ?(.*)' , data )
@@ -1173,7 +1173,7 @@ def keys_remove(self, args):
11731173 key = args .get ('<key>' )
11741174 sys .stdout .write ("Removing {} SSH Key... " .format (key ))
11751175 sys .stdout .flush ()
1176- response = self ._dispatch ('delete' , "/keys/{}" .format (key ))
1176+ response = self ._dispatch ('delete' , "/api/ keys/{}" .format (key ))
11771177 if response .status_code == requests .codes .no_content : # @UndefinedVariable
11781178 print ('done' )
11791179 else :
You can’t perform that action at this time.
0 commit comments