--- src/task-omatic/taskomatic_instance.rb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/task-omatic/taskomatic_instance.rb b/src/task-omatic/taskomatic_instance.rb index bb28d66..216bb53 100644 --- a/src/task-omatic/taskomatic_instance.rb +++ b/src/task-omatic/taskomatic_instance.rb @@ -49,7 +49,8 @@ class TaskomaticInstanceCreate < TaskomaticTask @logger.info "Creating instance with name #{@task.instance.image.external_key}, flavor #{@task.instance.flavor.name}, realm #{@task.instance.realm.name}" dcloud_instance = client.create_instance(@task.instance.image.external_key, :flavor => @task.instance.flavor.external_key, - :realm => @task.instance.realm.external_key) + :realm => @task.instance.realm.external_key, + :name => @task.instance.name) @logger.info "Instance created with key #{dcloud_instance.id} and state #{dcloud_instance.state}" @task.instance.external_key = dcloud_instance.id @task.instance.state = dcloud_to_instance_state(dcloud_instance.state)