Skip to content

Commit

Permalink
[ignore] fixed documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahammughal committed Aug 7, 2024
1 parent 81b9c21 commit c990d3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
4 changes: 2 additions & 2 deletions docs/resources/associated_site.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ All examples for the Associated Site resource can be found in the [examples](htt

#### Required ####

* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `key` (key) - (string) The key used to uniquely identify this Associated Site object.
* `value` (value) - (string) The value of the property.

* `tags` - (list) A list of Tags (ACI object [tagTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagTag/overview)). Tags can also be configured using a separate [aci_tag](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/tag) resource. This attribute is supported in ACI versions: 3.2(1l) and later.

#### Required ####

* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `key` (key) - (string) The key used to uniquely identify this Associated Site object.
* `value` (value) - (string) The value of the property.

## Importing
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/remote_site_id_mappings.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ All examples for the Remote Site Id Mappings resource can be found in the [examp

#### Required ####

* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `key` (key) - (string) The key used to uniquely identify this Associated Site object.
* `value` (value) - (string) The value of the property.

* `tags` - (list) A list of Tags (ACI object [tagTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagTag/overview)). Tags can also be configured using a separate [aci_tag](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/tag) resource. This attribute is supported in ACI versions: 3.2(1l) and later.

#### Required ####

* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `key` (key) - (string) The key used to uniquely identify this Associated Site object.
* `value` (value) - (string) The value of the property.

## Importing
Expand Down
15 changes: 0 additions & 15 deletions gen/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1742,21 +1742,6 @@ Precendence order is:
2. global level from properties.yaml
*/
func requiredProperty(propertyName, classPkgName string, definitions Definitions) bool {
// precedenceList := []string{classPkgName, "global"}
// for _, precedence := range precedenceList {
// if classDetails, ok := definitions.Properties[precedence]; ok {
// for key, value := range classDetails.(map[interface{}]interface{}) {
// if key.(string) == "resource_required" {
// for _, v := range value.([]interface{}) {
// if v.(string) == propertyName {
// return true
// }
// }
// }
// }
// }
// }
// return false
precedenceList := []string{classPkgName, "global"}
for _, precedence := range precedenceList {
if classDetails, ok := definitions.Properties[precedence]; ok {
Expand Down

0 comments on commit c990d3d

Please sign in to comment.