diff --git a/surveil/cmd/surveil_os_interface.py b/surveil/cmd/surveil_os_interface.py index d4915fc..00a2228 100644 --- a/surveil/cmd/surveil_os_interface.py +++ b/surveil/cmd/surveil_os_interface.py @@ -154,7 +154,10 @@ def main(): "_OS_TENANT_NAME": daemon_config["SURVEIL_OS_TENANT_NAME"], "_OS_USERNAME": daemon_config["SURVEIL_OS_USERNAME"], "_OS_PASSWORD": daemon_config["SURVEIL_OS_PASSWORD"], - "_OS_INSTANCE_ID": event['payload']['instance_id'] + "_OS_INSTANCE_ID": event['payload']['instance_id'], + "_OS_INSTANCE_METADATA": json.dumps( + event['payload']['metadata'] + ), } surveil_metadata_custom_fields = event['payload']['metadata'].get(