mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
send ips with event data
This commit is contained in:
parent
3ee75d9740
commit
b22178ce70
@ -970,15 +970,22 @@ def create(vm_):
|
||||
)
|
||||
)
|
||||
|
||||
event_data = {
|
||||
'name': vm_['name'],
|
||||
'profile': vm_['profile'],
|
||||
'provider': vm_['driver'],
|
||||
'instance_id': vm_['instance_id'],
|
||||
'floating_ips': vm_['floating_ips'],
|
||||
'fixed_ips': vm_['fixed_ips'],
|
||||
'private_ips': vm_['private_ips'],
|
||||
'public_ips': vm_['public_ips']
|
||||
}
|
||||
|
||||
salt.utils.cloud.fire_event(
|
||||
'event',
|
||||
'created instance',
|
||||
'salt/cloud/{0}/created'.format(vm_['name']),
|
||||
{
|
||||
'name': vm_['name'],
|
||||
'profile': vm_['profile'],
|
||||
'provider': vm_['driver'],
|
||||
},
|
||||
event_data,
|
||||
transport=__opts__['transport']
|
||||
)
|
||||
salt.utils.cloud.cachedir_index_add(
|
||||
|
Loading…
Reference in New Issue
Block a user