diff --git a/commit/pano.go b/commit/pano.go index a54c2fd..96f340c 100644 --- a/commit/pano.go +++ b/commit/pano.go @@ -225,8 +225,8 @@ type pcaDgInfoEntry struct { } type pcaTemplate struct { - Devices *util.MemberType `xml:"device"` Admins *util.MemberType `xml:"admin,omitempty"` + Devices *util.MemberType `xml:"device"` Name string `xml:"name"` Description string `xml:"description,omitempty"` ForceTemplateValues string `xml:"force-template-values"` diff --git a/commit/pano_test.go b/commit/pano_test.go index 523e40c..c463cdd 100644 --- a/commit/pano_test.go +++ b/commit/pano_test.go @@ -119,6 +119,7 @@ func TestPanoCommitAllDeviceGroup(t *testing.T) { "device group", "yes", "no", + "no", "", "", } @@ -142,10 +143,11 @@ func TestPanoCommitAllTemplate(t *testing.T) { s := []string{ "", "", "", } @@ -169,10 +171,11 @@ func TestPanoCommitAllTemplateStack(t *testing.T) { s := []string{ "", "", + "12321", "ts1", "template stack", - "12321", "yes", + "no", "", "", }