Skip to content

Commit 6df8c2a

Browse files
author
Arthur Zakirov
committed
PGPRO-533: Replace instance-name by instance, fix typos
1 parent ceaa2ce commit 6df8c2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/show.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ show_instance_json(parray *backup_list)
494494
/* Begin of instance object */
495495
json_add(buf, JT_BEGIN_OBJECT);
496496

497-
json_add_value(buf, "instance-name", instance_name, false);
497+
json_add_value(buf, "instance", instance_name, false);
498498

499499
json_add_key(buf, "backups", true);
500500

@@ -517,13 +517,13 @@ show_instance_json(parray *backup_list)
517517

518518
json_add(buf, JT_BEGIN_OBJECT);
519519

520-
json_add_value(buf, "id", base36enc(backup->start_time), true);
520+
json_add_value(buf, "id", base36enc(backup->start_time), false);
521521

522522
if (backup->parent_backup != 0)
523523
json_add_value(buf, "parent-backup-id",
524524
base36enc(backup->parent_backup), true);
525525

526-
json_add_value(buf, "backup-mode", pgBackupGetBackupMode(backup), false);
526+
json_add_value(buf, "backup-mode", pgBackupGetBackupMode(backup), true);
527527

528528
json_add_value(buf, "wal", backup->stream ? "STREAM": "ARCHIVE", true);
529529

0 commit comments

Comments
 (0)