Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zli82016 committed Sep 15, 2023
1 parent 2eead7e commit bb06598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions mmv1/api/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ def build_terraform_labels_field(name, min_version)
)
end

# Return labels fields that should be added to ImportStateVerifyIgnore
def ignore_read_labels_fields(props)
fields = []
props.each do |p|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccDataSourceGoogleCloudFunctions2Function_basic(t *testing.T) {
{
Config: testAccDataSourceGoogleCloudFunctions2FunctionConfig(functionName,
bucketName, zipFilePath),
// As the value of "labels" and "terraform_lables" in the state is dpendent on the configuration,
// As the value of "labels" and "terraform_labels" in the state is dependent on the configuration,
// and these fields are not set in the configuration of the data source, so these fields are empty in the state of the data source.
Check: resource.ComposeTestCheckFunc(
acctest.CheckDataSourceStateMatchesResourceStateWithIgnores(funcDataNameHttp,
Expand Down Expand Up @@ -59,7 +59,7 @@ resource "google_cloudfunctions2_function" "function_http_v2" {
location = "us-central1"
description = "a new function"
labels = {
env = "test"
env = "test"
}
build_config {
runtime = "nodejs12"
Expand Down

0 comments on commit bb06598

Please sign in to comment.