This commit is contained in:
Vyacheslav Anzhiganov 2015-12-05 05:44:21 +07:00
parent cbe2394e42
commit e2eedede18

View file

@ -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