Skip to content

scale numeric options accept NaN, Infinity, and fractional counts #729

@lazyGPT07

Description

@lazyGPT07

The scale command registers numeric options with Commander's raw Number converter. Values such as --instances nope, --instances 1.5, or --max-hourly-price Infinity become NaN, fractions, or non-finite numbers.

The action-level comparisons do not reject NaN, so scale up can continue with NaN cost output and no allocated instances. Other scale subcommands can persist fractional or non-finite numeric configuration.

Expected: count/TTL/percentage options should require safe integers, and price limits should require positive finite numbers before an action runs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions