Further sanitize data fired in an event

This commit is contained in:
Joseph Hall 2013-11-20 10:00:14 -07:00
parent 2a1e9cdcb9
commit 40c3c4185c
14 changed files with 55 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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