Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mist_org_networktemplate remote_syslog file archive not optional #88

Open
Walter-Smet-at-delen opened this issue Feb 21, 2025 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Walter-Smet-at-delen
Copy link

Describe the bug

the archive attribute is optional, however a tf apply fails when leaving it out.

To Reproduce

see data from json below

Data imported into terraform configuration

  "remote_syslog": {
    "enabled": true,
    "time_format": "year millisecond",
    "archive": {
      "files": 5,
      "size": "4m"
    },
    "files": [
      {
        "file": "messages",
        "match": "",
        "explicit_priority": false,
        "structured_data": false,
        "contents": [
          {
            "facility": "any",
            "severity": "notice"
          },
          {
            "facility": "authorization",
            "severity": "any"
          }
        ]
      },
      {
        "file": "interactive-commands",
        "match": "",
        "archive": {},  //empty object fixes tf apply
        "explicit_priority": false,
        "structured_data": false,
        "contents": [
          {
            "facility": "interactive-commands",
            "severity": "any"
          }
        ]
      }
    ],

Expected behavior

file messages should not fail when archive is missing, while adding an empty object renders file interactive-commands fine...

Error Message

mist_org_networktemplate.RemoteSite_TF_v002: Modifying... [id=a50ff425-95a7-46a7-8b97-a8994ea30a4a]
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to mist_org_networktemplate.RemoteSite_TF_v002, provider "provider[\"registry.terraform.io/juniper/mist\"]" produced an unexpected new value:
│ .remote_syslog.files[0].archive: was null, but now cty.ObjectVal(map[string]cty.Value{"files":cty.NullVal(cty.Number), "size":cty.NullVal(cty.String)}).
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
@Walter-Smet-at-delen Walter-Smet-at-delen added the bug Something isn't working label Feb 21, 2025
tmunzer added a commit that referenced this issue Feb 21, 2025
@tmunzer tmunzer added this to the v0.2.21 milestone Feb 21, 2025
@tmunzer
Copy link
Collaborator

tmunzer commented Feb 27, 2025

Hi @Walter-Smet-at-delen,

Version v0.2.21 has been published. Can you test it and validate it is fixing your issue?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants