Skip to content

Using wrong target CDA-API does not throw error #185

Description

@krowvin

CLI Script

load

Describe the bug

If you are using loader it will not throw an error if you target something that is not CDA.

Catch this and be sure to throw an error

REDACTED relevant log output

Steps to Reproduce

cwms-cli --log-level=DEBUG load location ids-all --soruce-office=SAS --source-cda=https://sas-t7/sas-data/ --target-cda=https://water.dev.cwbi.us/cwms-data/ --target-api-key=$CDA_API_KEY_DEV --like=".*Raw-SHEF-SAS" --dry-run

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

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