Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not generate azurerm provider with no features #37

Open
yorinasub17 opened this issue Dec 20, 2022 · 0 comments
Open

Can not generate azurerm provider with no features #37

yorinasub17 opened this issue Dec 20, 2022 · 0 comments
Labels
azurerm bug Something isn't working

Comments

@yorinasub17
Copy link
Member

// main.tf.json.jsonnet
local tf = import 'github.com/tf-libsonnet/core/main.libsonnet';
local azurerm = import 'github.com/tf-libsonnet/hashicorp-azurerm/main.libsonnet';

azurerm.provider.new(
  features=[{}],
  src='hashicorp/azurerm',
)

generates

{
   "provider": {
      "azurerm": [
         { }
      ]
   },
   "terraform": {
      "required_providers": {
         "azurerm": {
            "source": "hashicorp/azurerm"
         }
      }
   }
}

Not the expected:

{
   "provider": {
      "azurerm": [
         { "features": [{}] }
      ]
   },
   "terraform": {
      "required_providers": {
         "azurerm": {
            "source": "hashicorp/azurerm"
         }
      }
   }
}
@yorinasub17 yorinasub17 added bug Something isn't working azurerm labels Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azurerm bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant