Skip to content

Commit c56342c

Browse files
author
Julien Levasseur
authored
Merge pull request #4 from julienlevasseur/provider_rewrite
Provider rewrite
2 parents 61eddbb + 10aa0ba commit c56342c

File tree

6 files changed

+310
-386
lines changed

6 files changed

+310
-386
lines changed

docs/data-sources/uname.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ description: |-
1616
data "uname" "localhost" {}
1717
1818
output "localhost_kernel_name" {
19-
value = data.uname.system.kernel_name
19+
value = data.uname.localhost.kernel_name
2020
}
2121
2222
output "localhost_nodename" {
23-
value = data.uname.system.nodename
23+
value = data.uname.localhost.nodename
2424
}
2525
2626
output "localhost_kernel_release" {
27-
value = data.uname.system.kernel_release
27+
value = data.uname.localhost.kernel_release
2828
}
2929
3030
output "localhost_machine" {
31-
value = data.uname.system.machine
31+
value = data.uname.localhost.machine
3232
}
3333
3434
output "localhost_operating_system" {
35-
value = data.uname.system.operating_system
35+
value = data.uname.localhost.operating_system
3636
}
3737
```
3838

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/julienlevasseur/terraform-provider-uname
33
go 1.13
44

55
require (
6-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.3.0
6+
github.com/hashicorp/terraform-plugin-framework v1.1.1
7+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.25.0
78
github.com/matishsiao/goInfo v0.0.0-20210923090445-da2e3fa8d45f
89
)

0 commit comments

Comments
 (0)