Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package terraform for openSUSE:Factory 
checked in at 2022-10-20 16:07:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/terraform (Old)
 and      /work/SRC/openSUSE:Factory/.terraform.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "terraform"

Thu Oct 20 16:07:02 2022 rev:43 rq:1030150 version:1.3.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/terraform/terraform.changes      2022-10-08 
01:26:22.790388577 +0200
+++ /work/SRC/openSUSE:Factory/.terraform.new.2275/terraform.changes    
2022-10-20 16:07:04.451564961 +0200
@@ -1,0 +2,8 @@
+Wed Oct 19 18:15:02 UTC 2022 - Johannes Kastl <ka...@b1-systems.de>
+
+- update to 1.3.3:
+  * BUG FIXES:
+    - Fix error when removing a resource from configuration which has 
according to the provider has already been deleted. (#31850)
+    - Fix error when setting empty collections into variables with collections 
of nested objects with default values. (#32033)
+
+-------------------------------------------------------------------

Old:
----
  terraform-1.3.2.obscpio
  terraform-1.3.2.tar.gz

New:
----
  terraform-1.3.3.obscpio
  terraform-1.3.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ terraform.spec ++++++
--- /var/tmp/diff_new_pack.QYLv2X/_old  2022-10-20 16:07:05.631566802 +0200
+++ /var/tmp/diff_new_pack.QYLv2X/_new  2022-10-20 16:07:05.635566809 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           terraform
-Version:        1.3.2
+Version:        1.3.3
 Release:        0
 Summary:        Tool for building infrastructure safely and efficiently
 License:        MPL-2.0

++++++ _service ++++++
--- /var/tmp/diff_new_pack.QYLv2X/_old  2022-10-20 16:07:05.687566890 +0200
+++ /var/tmp/diff_new_pack.QYLv2X/_new  2022-10-20 16:07:05.691566896 +0200
@@ -3,8 +3,8 @@
     <param name="url">https://github.com/hashicorp/terraform</param>
     <param name="scm">git</param>
     <param name="filename">terraform</param>
-    <param name="versionformat">1.3.2</param>
-    <param name="revision">v1.3.2</param>
+    <param name="versionformat">1.3.3</param>
+    <param name="revision">v1.3.3</param>
     <param name="exclude">.git</param>
   </service>
   <service name="tar" mode="disabled"/>
@@ -16,7 +16,7 @@
     <param name="basename">terraform</param>
   </service>
   <service name="go_modules" mode="disabled">
-    <param name="archive">terraform-1.3.2.tar.gz</param>
+    <param name="archive">terraform-1.3.3.tar.gz</param>
   </service>
 </services>
 

++++++ terraform-1.3.2.obscpio -> terraform-1.3.3.obscpio ++++++
/work/SRC/openSUSE:Factory/terraform/terraform-1.3.2.obscpio 
/work/SRC/openSUSE:Factory/.terraform.new.2275/terraform-1.3.3.obscpio differ: 
char 49, line 1

++++++ terraform-1.3.2.tar.gz -> terraform-1.3.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/terraform-1.3.2/CHANGELOG.md 
new/terraform-1.3.3/CHANGELOG.md
--- old/terraform-1.3.2/CHANGELOG.md    2022-10-06 18:39:19.000000000 +0200
+++ new/terraform-1.3.3/CHANGELOG.md    2022-10-19 19:40:22.000000000 +0200
@@ -1,3 +1,10 @@
+## 1.3.3 (October 19, 2022)
+
+BUG FIXES:
+
+* Fix error when removing a resource from configuration which has according to 
the provider has already been deleted. 
([#31850](https://github.com/hashicorp/terraform/issues/31850))
+* Fix error when setting empty collections into variables with collections of 
nested objects with default values. 
([#32033](https://github.com/hashicorp/terraform/issues/32033))
+
 ## 1.3.2 (October 06, 2022)
 
 BUG FIXES:
@@ -61,7 +68,7 @@
 * config: When reporting an error message related to a function call, 
Terraform will now include contextual information about the signature of the 
function that was being called, as an aid to understanding why the call might 
have failed. ([#31299](https://github.com/hashicorp/terraform/issues/31299))
 * config: When reporting an error or warning message that isn't caused by 
values being unknown or marked as sensitive, Terraform will no longer mention 
any values having those characteristics in the contextual information presented 
alongside the error. Terraform will still return this information for the small 
subset of error messages that are specifically about unknown values or 
sensitive values being invalid in certain contexts. 
([#31299](https://github.com/hashicorp/terraform/issues/31299))
 * config: `moved` blocks can now describe resources moving to and from modules 
in separate module packages. 
([#31556](https://github.com/hashicorp/terraform/issues/31556))
-* `terraform fmt` now accepts multiple target paths, allowing formatting of 
several individual files at once. 
([#31687](https://github.com/hashicorp/terraform/issues/31687))
+* `terraform fmt` now accepts multiple target paths, allowing formatting of 
several individual files at once. 
([#28191](https://github.com/hashicorp/terraform/issues/28191))
 * `terraform init`: provider installation errors now mention which host 
Terraform was downloading from 
([#31524](https://github.com/hashicorp/terraform/issues/31524))
 * CLI: Terraform will report more explicitly when it is proposing to delete an 
object due to it having moved to a resource instance that is not currently 
declared in the configuration. 
([#31695](https://github.com/hashicorp/terraform/issues/31695))
 * CLI: When showing the progress of a remote operation running in Terraform 
Cloud, Terraform CLI will include information about pre-plan run tasks 
([#31617](https://github.com/hashicorp/terraform/issues/31617))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/terraform-1.3.2/go.mod new/terraform-1.3.3/go.mod
--- old/terraform-1.3.2/go.mod  2022-10-06 18:39:19.000000000 +0200
+++ new/terraform-1.3.3/go.mod  2022-10-19 19:40:22.000000000 +0200
@@ -74,15 +74,15 @@
        github.com/tombuildsstuff/giovanni v0.15.1
        github.com/xanzy/ssh-agent v0.3.1
        github.com/xlab/treeprint v0.0.0-20161029104018-1d6e34225557
-       github.com/zclconf/go-cty v1.11.0
+       github.com/zclconf/go-cty v1.11.1
        github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b
        github.com/zclconf/go-cty-yaml v1.0.2
        golang.org/x/crypto v0.0.0-20220518034528-6f7dac969898
        golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4
-       golang.org/x/net v0.0.0-20211216030914-fe4d6282115f
+       golang.org/x/net v0.0.0-20220927171203-f486391704dc
        golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f
-       golang.org/x/sys v0.0.0-20220517195934-5e4e11fc645e
-       golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b
+       golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10
+       golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
        golang.org/x/text v0.3.7
        golang.org/x/tools v0.1.11
        google.golang.org/api v0.44.0-impersonate-preview
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/terraform-1.3.2/go.sum new/terraform-1.3.3/go.sum
--- old/terraform-1.3.2/go.sum  2022-10-06 18:39:19.000000000 +0200
+++ new/terraform-1.3.3/go.sum  2022-10-19 19:40:22.000000000 +0200
@@ -619,8 +619,8 @@
 github.com/zclconf/go-cty v1.0.0/go.mod 
h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
 github.com/zclconf/go-cty v1.1.0/go.mod 
h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s=
 github.com/zclconf/go-cty v1.2.0/go.mod 
h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8=
-github.com/zclconf/go-cty v1.11.0 
h1:726SxLdi2SDnjY+BStqB9J1hNp4+2WlzyXLuimibIe0=
-github.com/zclconf/go-cty v1.11.0/go.mod 
h1:s9IfD1LK5ccNMSWCVFCE2rJfHiZgi7JijgeWIMfhLvA=
+github.com/zclconf/go-cty v1.11.1 
h1:UMMYDL4riBFaPdzjEWcDdWG7x/Adz8E8f9OX/MGR7V4=
+github.com/zclconf/go-cty v1.11.1/go.mod 
h1:s9IfD1LK5ccNMSWCVFCE2rJfHiZgi7JijgeWIMfhLvA=
 github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b 
h1:FosyBZYxY34Wul7O/MSKey3txpPYyCqVO5ZyceuQJEI=
 github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod 
h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8=
 github.com/zclconf/go-cty-yaml v1.0.2 
h1:dNyg4QLTrv2IfJpm7Wtxi55ed5gLGOlPrZ6kMd51hY0=
@@ -739,8 +739,9 @@
 golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod 
h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
 golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod 
h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
 golang.org/x/net v0.0.0-20211209124913-491a49abca63/go.mod 
h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
-golang.org/x/net v0.0.0-20211216030914-fe4d6282115f 
h1:hEYJvxw1lSnWIl8X9ofsYMklzaDs90JI2az5YMd4fPM=
 golang.org/x/net v0.0.0-20211216030914-fe4d6282115f/go.mod 
h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
+golang.org/x/net v0.0.0-20220927171203-f486391704dc 
h1:FxpXZdoBqT8RjqTy6i1E8nXHhW21wK7ptQ/EPIGxzPQ=
+golang.org/x/net v0.0.0-20220927171203-f486391704dc/go.mod 
h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
 golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod 
h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
 golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod 
h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
 golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod 
h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -825,11 +826,13 @@
 golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod 
h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod 
h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e/go.mod 
h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220517195934-5e4e11fc645e 
h1:w36l2Uw3dRan1K3TyXriXvY+6T56GNmlKGcqiQUJDfM=
 golang.org/x/sys v0.0.0-20220517195934-5e4e11fc645e/go.mod 
h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 
h1:WIoqL4EROvwiPdUtaip4VcDdpZ4kha7wBWZrbVKCIZg=
+golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod 
h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod 
h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
-golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b 
h1:9zKuko04nR4gjZ4+DNjHqRlAJqbJETHwiNKDqTfOjfE=
 golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod 
h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
+golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 
h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
+golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod 
h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
 golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod 
h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
 golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod 
h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/terraform-1.3.2/internal/terraform/context_apply2_test.go 
new/terraform-1.3.3/internal/terraform/context_apply2_test.go
--- old/terraform-1.3.2/internal/terraform/context_apply2_test.go       
2022-10-06 18:39:19.000000000 +0200
+++ new/terraform-1.3.3/internal/terraform/context_apply2_test.go       
2022-10-19 19:40:22.000000000 +0200
@@ -1442,3 +1442,46 @@
                t.Fatalf("apply: %s", diags.Err())
        }
 }
+
+func TestContext2Apply_missingOrphanedResource(t *testing.T) {
+       m := testModuleInline(t, map[string]string{
+               "main.tf": `
+# changed resource address to create a new object
+resource "test_object" "y" {
+  test_string = "y"
+}
+`,
+       })
+
+       p := simpleMockProvider()
+
+       // report the prior value is missing
+       p.ReadResourceFn = func(req providers.ReadResourceRequest) (resp 
providers.ReadResourceResponse) {
+               resp.NewState = cty.NullVal(req.PriorState.Type())
+               return resp
+       }
+
+       state := states.NewState()
+       root := state.EnsureModule(addrs.RootModuleInstance)
+       root.SetResourceInstanceCurrent(
+               mustResourceInstanceAddr("test_object.x").Resource,
+               &states.ResourceInstanceObjectSrc{
+                       Status:    states.ObjectReady,
+                       AttrsJSON: []byte(`{"test_string":"x"}`),
+               },
+               
mustProviderConfig(`provider["registry.terraform.io/hashicorp/test"]`),
+       )
+
+       ctx := testContext2(t, &ContextOpts{
+               Providers: map[addrs.Provider]providers.Factory{
+                       addrs.NewDefaultProvider("test"): 
testProviderFuncFixed(p),
+               },
+       })
+
+       opts := SimplePlanOpts(plans.NormalMode, nil)
+       plan, diags := ctx.Plan(m, state, opts)
+       assertNoErrors(t, diags)
+
+       _, diags = ctx.Apply(plan, m)
+       assertNoErrors(t, diags)
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/terraform-1.3.2/internal/terraform/node_resource_apply_instance.go 
new/terraform-1.3.3/internal/terraform/node_resource_apply_instance.go
--- old/terraform-1.3.2/internal/terraform/node_resource_apply_instance.go      
2022-10-06 18:39:19.000000000 +0200
+++ new/terraform-1.3.3/internal/terraform/node_resource_apply_instance.go      
2022-10-19 19:40:22.000000000 +0200
@@ -113,11 +113,16 @@
        addr := n.ResourceInstanceAddr()
 
        if n.Config == nil {
-               // This should not be possible, but we've got here in at least 
one
-               // case as discussed in the following issue:
-               //    https://github.com/hashicorp/terraform/issues/21258
-               // To avoid an outright crash here, we'll instead return an 
explicit
-               // error.
+               // If there is no config, and there is no change, then we have 
nothing
+               // to do and the change was left in the plan for informational
+               // purposes only.
+               changes := ctx.Changes()
+               csrc := 
changes.GetResourceInstanceChange(n.ResourceInstanceAddr(), states.CurrentGen)
+               if csrc == nil || csrc.Action == plans.NoOp {
+                       log.Printf("[DEBUG] NodeApplyableResourceInstance: No 
config or planned change recorded for %s", n.Addr)
+                       return nil
+               }
+
                diags = diags.Append(tfdiags.Sourceless(
                        tfdiags.Error,
                        "Resource node has no configuration attached",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/terraform-1.3.2/version/version.go 
new/terraform-1.3.3/version/version.go
--- old/terraform-1.3.2/version/version.go      2022-10-06 18:39:19.000000000 
+0200
+++ new/terraform-1.3.3/version/version.go      2022-10-19 19:40:22.000000000 
+0200
@@ -11,7 +11,7 @@
 )
 
 // The main version number that is being run at the moment.
-var Version = "1.3.2"
+var Version = "1.3.3"
 
 // A pre-release marker for the version. If this is "" (empty string)
 // then it means that it is a final release. Otherwise, this is a pre-release

++++++ terraform.obsinfo ++++++
--- /var/tmp/diff_new_pack.QYLv2X/_old  2022-10-20 16:07:06.859568718 +0200
+++ /var/tmp/diff_new_pack.QYLv2X/_new  2022-10-20 16:07:06.863568725 +0200
@@ -1,5 +1,5 @@
 name: terraform
-version: 1.3.2
-mtime: 1665074359
-commit: 72723ea9ca27e337cea3afc73fa15cfa138c0105
+version: 1.3.3
+mtime: 1666201222
+commit: e8052f9307c70f5a249d8d91bb9cef2364e3754d
 

++++++ vendor.tar.gz ++++++
/work/SRC/openSUSE:Factory/terraform/vendor.tar.gz 
/work/SRC/openSUSE:Factory/.terraform.new.2275/vendor.tar.gz differ: char 5, 
line 1

Reply via email to