Skip to content

Conversation

@iscai-msft
Copy link
Contributor

No description provided.

@iscai-msft iscai-msft requested a review from lmazuel July 13, 2021 19:26
code_model.global_parameters.remove(dollar_host_parameter)
code_model.base_url = dollar_host_parameter.yaml_data["clientDefaultValue"]
code_model.global_parameters.parameters = [
p for p in code_model.global_parameters.parameters if p.rest_api_name != "$host"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dollar_host is already the list of thing you want to remove, so you can do

for host in dollar_host:
    code_model.global_parameters.remove(host)

@iscai-msft iscai-msft merged commit e294bb0 into autorestv3 Jul 13, 2021
@iscai-msft iscai-msft deleted the multiple_hosts branch July 13, 2021 20:18
iscai-msft added a commit that referenced this pull request Jul 13, 2021
…into reserved_parameter_grouping

* 'autorestv3' of https://github.com/Azure/autorest.python:
  remove all hosts from global parameters (#972)
  Disable LLC and M4 conflicts (#969)
iscai-msft added a commit that referenced this pull request Jul 14, 2021
…into prepare_request

* 'autorestv3' of https://github.com/Azure/autorest.python:
  fix case of grouped parameter + reserved property name (#970)
  remove all hosts from global parameters (#972)
iscai-msft added a commit that referenced this pull request Jul 15, 2021
…ython into hybrid

* 'prepare_request' of https://github.com/Azure/autorest.python:
  add llc param grouping with reserved word test
  pad private variables for LLC
  fix case of grouped parameter + reserved property name (#970)
  remove all hosts from global parameters (#972)
  fix relative path to testserver in vanilla conftests
  add conftest in each acceptance tests folder vanilla llc
  pylint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants