terraform-provider-okta
terraform-provider-okta copied to clipboard
Handle multiple apps returned by SAML app data source, where one app exactly matches.
In the case where there are two apps: "MyApp" and "MyApp 2". If the data source for saml apps queried with label "MyApp" and the API returns "MyApp 2" as the first app in the list, the data source will fail. This change now iterates through all of the apps returned and returning an exact match, if "label" has been specified.
@MatthewJohn Thanks. We will review it
Thanks @duytiennguyen-okta :)
If you're ok with the suggestion, I will bring the PR in and update it @MatthewJohn