Skip to content

Commit

Permalink
Merge pull request #40 from cloudblue/LITE-30610-add-forntend-for-syn…
Browse files Browse the repository at this point in the history
…c-on-demand

[LITE-30645] - bugfix - there is not always asset_external_id
  • Loading branch information
zzzevaka authored Aug 23, 2024
2 parents bde6c64 + 7fd63e4 commit e4755d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connect_ext_datalake/services/payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ def prepare_ff_request_data(ff_request: dict, hub_cd):
ff_request["name"] = f"Fulfillment request for asset {ff_request['asset']['id']}."
ff_request["asset_id"] = ff_request['asset']['id']
ff_request['product_id'] = ff_request['asset']['product']['id']
ff_request["asset_external_id"] = ff_request['asset']['external_id']
ff_request["asset_external_uid"] = ff_request['asset']['external_uid']
ff_request["asset_external_id"] = ff_request['asset'].get('external_id', None)
ff_request["asset_external_uid"] = ff_request['asset'].get('external_uid', None)
ff_request["activation_link"] = ff_request.get('params_form_url', None)
ff_request["published_at"] = datetime.now(tz=timezone(timedelta(hours=0))).isoformat(
timespec='seconds'
Expand Down

0 comments on commit e4755d2

Please sign in to comment.