mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Further sanitize data fired in an event
This commit is contained in:
parent
2a1e9cdcb9
commit
40c3c4185c
@ -327,6 +327,10 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
@ -400,6 +400,10 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
@ -1343,6 +1343,10 @@ def create(vm_=None, call=None):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
@ -238,6 +238,10 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
@ -316,6 +316,9 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
@ -364,6 +364,10 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
@ -245,6 +245,10 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
@ -633,6 +633,10 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
@ -723,6 +723,10 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
@ -414,6 +414,10 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
'event',
|
||||
|
@ -411,6 +411,10 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
@ -159,6 +159,10 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
@ -611,6 +611,10 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
@ -442,6 +442,10 @@ def create(vm_):
|
||||
# Store what was used to the deploy the VM
|
||||
event_kwargs = copy.deepcopy(deploy_kwargs)
|
||||
del(event_kwargs['minion_pem'])
|
||||
del(event_kwargs['minion_pub'])
|
||||
del(event_kwargs['sudo_password'])
|
||||
if 'password' in kwargs:
|
||||
del(event_kwargs['password'])
|
||||
ret['deploy_kwargs'] = event_kwargs
|
||||
|
||||
salt.cloud.utils.fire_event(
|
||||
|
Loading…
Reference in New Issue
Block a user