fix
This commit is contained in:
parent
cbe2394e42
commit
e2eedede18
1 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,8 @@ for task in tasks['results']:
|
|||
# container_create
|
||||
print task
|
||||
print '---------------------'
|
||||
# TODO: take from task
|
||||
template = 'ubuntu'
|
||||
|
||||
if task['task'] == 'container_create':
|
||||
# TODO: update task status to 1
|
||||
|
@ -34,7 +36,7 @@ for task in tasks['results']:
|
|||
|
||||
# create ssh_key.pub
|
||||
param_auth_key = ''
|
||||
if 'ssh_key' in task['plain'] and task['plain']['ssh_key'] != '':
|
||||
if 'ssh_key' in task['plain'] and task['plain']['ssh_key']:
|
||||
node.__container_authkey_create(container_id, task['plain']['ssh_key'])
|
||||
param_auth_key = '--auth-key /var/lib/gocloud/node/auth-keys/%s.pub' % container_id
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue