We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dfa756 commit e972db4Copy full SHA for e972db4
cmd/policy-attributeValues.go
@@ -12,9 +12,7 @@ import (
12
13
// TODO: add metadata to outputs once [https://github.com/opentdf/otdfctl/issues/73] is addressed
14
15
-var (
16
- policy_attributeValuesCmd *cobra.Command
17
-)
+var policy_attributeValuesCmd *cobra.Command
18
19
func policy_createAttributeValue(cmd *cobra.Command, args []string) {
20
flagHelper := cli.NewFlagHelper(cmd)
@@ -66,7 +64,7 @@ func policy_listAttributeValue(cmd *cobra.Command, args []string) {
66
64
}
67
65
t := cli.NewTable(
68
cli.NewUUIDColumn(),
69
- table.NewColumn("fqn", "Fqn", 16),
+ table.NewColumn("fqn", "Fqn", 37),
70
table.NewColumn("members", "Members", 16),
71
table.NewColumn("active", "Active", 16),
72
table.NewColumn("labels", "Labels", 16),
@@ -86,6 +84,7 @@ func policy_listAttributeValue(cmd *cobra.Command, args []string) {
86
84
"updated_at": v.Metadata["Updated At"],
87
85
}))
88
+ t = t.WithRows(rows)
89
HandleSuccess(cmd, "", t, vals)
90
91
pkg/cli/sdkHelpers.go
@@ -66,12 +66,12 @@ func GetSimpleAttribute(a *policy.Attribute) SimpleAttribute {
func GetSimpleAttributeValue(v *policy.Value) SimpleAttributeValue {
memberIds := []string{}
- for _, m := range v.Members {
- memberIds = append(memberIds, m.Id)
+ for _, m := range v.GetMembers() {
+ memberIds = append(memberIds, m.GetId())
return SimpleAttributeValue{
73
- Id: v.Id,
74
- FQN: v.Fqn,
+ Id: v.GetId(),
+ FQN: v.GetFqn(),
75
Members: memberIds,
76
Active: strconv.FormatBool(v.Active.GetValue()),
77
Metadata: ConstructMetadata(v.GetMetadata()),
0 commit comments