Right now it just gives a traceback. A message telling users they have
not provided a proper service type would be more useful
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit
b68675b516292ed3a2fb7a9377723fe9049b54ea)
specs.append(spec)
else:
placementspec = PlacementSpec.from_string(placement)
- assert service_type
+ if not service_type:
+ raise OrchestratorValidationError(usage)
specs = [ServiceSpec(service_type.value, placement=placementspec,
unmanaged=unmanaged, preview_only=dry_run)]