Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix: miscellaneous bug fixes #250

Merged
merged 7 commits into from
Jan 19, 2024
2 changes: 1 addition & 1 deletion riocli/apply/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ResolverCache(object, metaclass=_Singleton):
"managedservice": "^[a-zA-Z][a-zA-Z0-9_-]$"
}

GUID_KEYS = ['guid', 'GUID', 'uuid', 'ID', 'Id', 'id']
GUID_KEYS = ['guid', 'GUID', 'deploymentId', 'uuid', 'ID', 'Id', 'id']
NAME_KEYS = ['name', 'urlPrefix', 'buildName']

def __init__(self, client):
Expand Down
2 changes: 1 addition & 1 deletion riocli/device/delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def delete_device(
spinner.write('')

if failed_count == 0 and success_count == len(devices):
spinner_text = click.style('All devices deleted successfully.', Colors.GREEN)
spinner_text = click.style('{} device(s) deleted successfully.'.format(len(devices)), Colors.GREEN)
spinner_char = click.style(Symbols.SUCCESS, Colors.GREEN)
elif success_count == 0 and failed_count == len(devices):
spinner_text = click.style('Failed to delete devices', Colors.YELLOW)
Expand Down
5 changes: 4 additions & 1 deletion riocli/jsonschema/schemas/deployment-schema.yaml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,12 @@ definitions:
type: string
mountPath:
type: string
pattern: '^([\\/][a-z0-9\s\-_@\-^!#$%&.]*)+(\.[a-z][a-z0-9]+)?$'
subPath:
type: string
pattern: '^([\\/][a-z0-9\s\-_@\-^!#$%&.]*)+(\.[a-z][a-z0-9]+)?$'
additionalProperties: false


endpointSpec:
properties:
Expand Down Expand Up @@ -143,7 +147,6 @@ definitions:
- always
- onfailure
- never
default: always
envArgs:
type: array
items:
Expand Down
1 change: 1 addition & 0 deletions riocli/jsonschema/schemas/secret-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ definitions:
properties:
name:
type: string
maxLength: 253
guid:
"$ref": "#/definitions/secretGUID"
creator:
Expand Down
6 changes: 5 additions & 1 deletion riocli/organization/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ def select_organization(
if sys.stdout.isatty() and interactive:
select_project(ctx.obj, organization=organization_guid)
else:
ctx.obj.data['project_id'] = ""
ctx.obj.data['project_name'] = ""
click.secho(
"Your organization has been set to '{}'".format(organization_name),
"Your organization has been set to '{}'\n"
"Please set your project with `rio project select PROJECT_NAME`".format(organization_name),
fg=Colors.GREEN)


ctx.obj.save()
Loading