Skip to content

Commit

Permalink
update should work (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
tebeka committed Jan 9, 2019
1 parent 3dd49d9 commit 6b23409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nuclio/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ def deploy(nb_file, dashboard_url='', project='', verbose=False):

headers = {
'Content-Type': 'application/json',
'x-nuclio-project-name': project,
}

fn = requests.post if is_new else requests.put
try:
resp = fn(api_url, json=config, headers=headers)
resp = requests.post(api_url, json=config, headers=headers)
except OSError as err:
log('ERROR: %s', str(err))
raise DeployError('error: cannot {} to {}'.format(verb, api_url))
Expand Down

0 comments on commit 6b23409

Please sign in to comment.