feat: include OCI in state status inspection

This commit is contained in:
juvenal.diaz 2026-10-27 14:44:08 -06:00
parent 69a7e4a519
commit b780ca2312
2 changed files with 3 additions and 2 deletions

View File

@ -156,7 +156,7 @@ Recovery And State
drill-gitea-restore Run the Gitea restore drill.
drill-pihole-restore Run the Pi-hole restore drill.
state-backup Back up local OpenTofu state files.
state status [STACK] [--json] Inspect OpenTofu locks and drift without changing state.
state status [STACK] [--json] Inspect OpenTofu locks and drift (provisioning, cluster, platform, apps, edge, oci).
pimox {status [VMID]|console VMID} Inspect Pimox VMs or open a serial emergency console.
Focused Doctors

View File

@ -16,6 +16,7 @@ STACKS = {
"platform": "bootstrap/platform",
"apps": "bootstrap/apps",
"edge": "bootstrap/edge",
"oci": "bootstrap/oci",
}
@ -76,7 +77,7 @@ def inspect_stack(repo: Path, name: str, relative: str) -> dict:
def main() -> int:
parser = argparse.ArgumentParser(description="Inspect OpenTofu state locks and drift without changing state")
parser.add_argument("stack", nargs="?", help="provisioning, cluster, platform, apps, edge, or bootstrap path")
parser.add_argument("stack", nargs="?", help="provisioning, cluster, platform, apps, edge, oci, or bootstrap path")
parser.add_argument("--json", action="store_true", dest="as_json")
args = parser.parse_args()
if args.stack and args.stack not in STACKS and args.stack not in STACKS.values():