Skip to content

Resource template not rendering importfile #193

Closed
@norrland

Description

@norrland

When rendering a resource specific template, the ImportFile does not render.

I have the following templates:

$ tree templates/
templates/
├── index.md.tmpl
├── resources
│   └── server.md.tmpl
└── resources.md.tmpl

After adding the server.md.tmpl to have specific changes for the server resource it doesn't render importFile.
See diff below.

@@ -167,7 +191,4 @@ Required:
 - `username` (String)
 ## Import
 Import is supported using the following syntax:
-```shell
-# provider_server Import
-$ terraform import provider_server.example kvm123456
-```
+{{codefile "shell" "examples/resources/provider_server/import.sh"}}
$ find . -name "import.sh"
./examples/resources/provider_server/import.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions