diff options
author | stark, steven <steven.stark@att.com> | 2021-05-03 15:23:46 -0700 |
---|---|---|
committer | stark, steven <steven.stark@att.com> | 2021-05-03 15:23:46 -0700 |
commit | 7530353e6ad1839f74af4c361b5215d68d78e0c7 (patch) | |
tree | 4ced6892125c356afab335b59cd33928fc78b242 /onap-client/onap_client/sdc/vsp.py | |
parent | 057a991e03dcee33caa4e0d6be758aebaced2df0 (diff) |
[VVP] vsp creates for first time user
If the user has never used the SDC dashboard,
the request to retrieve LM details fails.
Issue-ID: VVP-535
Signed-off-by: stark, steven <steven.stark@att.com>
Change-Id: I55d0c02e6de4c5fdd1a0f5cc20d9c2cd706f855b
Diffstat (limited to 'onap-client/onap_client/sdc/vsp.py')
-rw-r--r-- | onap-client/onap_client/sdc/vsp.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/onap-client/onap_client/sdc/vsp.py b/onap-client/onap_client/sdc/vsp.py index fca674b..44363d8 100644 --- a/onap-client/onap_client/sdc/vsp.py +++ b/onap-client/onap_client/sdc/vsp.py @@ -183,6 +183,12 @@ def create_vsp(vsp_input, oc=None): oc=oc ) + # Workaround for first time users to avoid ENTITY_NOT_FOUND error + oc.sdc.license_model.get_license_model_version( + license_model_id=license_model_id, + license_model_version_id=license_model_version_id, + ) + feature_group = sdc.license_model.get_license_model_attribute( license_model_id, license_model_version_id, |