Skip to content

optic index info outputs empty report header #17

@slippman

Description

@slippman

When using the --clusters argument with the optic index info command - if there is not at least one valid cluster provided, optic outputs an empty report header.

7536 ➜ optic index info -c typo-clustername
typo-clustername is not present in cluster configuration information
+Index Info---+------+----------------+------------+------------+-----+-----+-------------+---------+
| Index | Age | Type | Document Count | Index Size | Shard Size | Pri | Rep | Write Alias | Cluster |
+-------+-----+------+----------------+------------+------------+-----+-----+-------------+---------+
[05-20-25 1:57:38 PM] /Users/slippman

Suggested remedy: optic should not output the report header but instead an informational message stating that there are no valid indexes to report on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions