Juniper / junos-terraform

Apache License 2.0
70 stars 25 forks source link

Nil pointer empty xml #21

Closed davedotdev closed 3 years ago

davedotdev commented 3 years ago

Junos hands over empty XML elements when a feature is turned on, such as an 'orlonger' flag in a policy-map through choice-ident enums identified in YANG.

This change ensures that when an empty element is received, JTAF generated providers set the local state accordingly with a single " " whitespace, which indicates the feature is turned on.

Tested for all Terraform stages on vSRX platform.