Skip to content

slot targeting follow-ups from #7630 #7650

@rajeshkamal5050

Description

@rajeshkamal5050

Minor items from PR #7630 review, none blocking.

  1. case-sensitive swap vs case-insensitive deploy — swap's isValidSlotName uses slices.Contains (exact match), deploy uses strings.EqualFold. Align swap with slices.ContainsFunc + strings.EqualFold.

  2. @production undocumentednormalizeSlotName accepts @production but flag help only mentions production. Add a note.

  3. deploy loop over single-element slicedetermineDeploymentTargets now always returns one target. Simplify the loop in Deploy().

  4. add case-insensitive slot name test — have test for Production → main app, but not Stagingstaging slot. Add one.

Ref: #7365, #7630

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions