mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-09-13 06:59:07 +00:00
Fix json Listing
This commit is contained in:
parent
1ce31ace46
commit
570197bdfa
1 changed files with 4 additions and 4 deletions
|
@ -93,16 +93,16 @@ func ResourceList(cmd *cobra.Command, args []string) error {
|
||||||
if jsonOutput {
|
if jsonOutput {
|
||||||
outputResources := []ResourceJsonOutput{}
|
outputResources := []ResourceJsonOutput{}
|
||||||
for i := range resources {
|
for i := range resources {
|
||||||
_, _, _, _, pass, desc, err := helper.GetResource(ctx, client, resources[i].ID)
|
_, name, username, uri, pass, desc, err := helper.GetResource(ctx, client, resources[i].ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Get Resource %w", err)
|
return fmt.Errorf("Get Resource %w", err)
|
||||||
}
|
}
|
||||||
outputResources = append(outputResources, ResourceJsonOutput{
|
outputResources = append(outputResources, ResourceJsonOutput{
|
||||||
ID: &resources[i].ID,
|
ID: &resources[i].ID,
|
||||||
FolderParentID: &resources[i].FolderParentID,
|
FolderParentID: &resources[i].FolderParentID,
|
||||||
Name: &resources[i].Name,
|
Name: &name,
|
||||||
Username: &resources[i].Username,
|
Username: &username,
|
||||||
URI: &resources[i].URI,
|
URI: &uri,
|
||||||
Password: &pass,
|
Password: &pass,
|
||||||
Description: &desc,
|
Description: &desc,
|
||||||
CreatedTimestamp: &resources[i].Created.Time,
|
CreatedTimestamp: &resources[i].Created.Time,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue