You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
withSpinner(text=f"Querying by {self.resource_uuid_name}{uuid}"):
172
175
self.get_client_resource().get_by_uuid(uuid)
173
176
174
177
exceptCloudscaleApiExceptionase:
175
178
results=self.cmd_get_by_name(name=uuid)
176
179
ifnotresults:
177
180
ifself.resource_name_key:
178
-
msg=f"No resource found for {self.cloud_resource_name} having UUID or {self.resource_name_key}: {uuid}"
181
+
msg=f"No resource found for {self.cloud_resource_name} having {self.resource_uuid_name} or {self.resource_name_key}: {uuid}"
179
182
else:
180
-
msg=f"No resource found for {self.cloud_resource_name} having UUID: {uuid}"
183
+
msg=f"No resource found for {self.cloud_resource_name} having {self.resource_uuid_name}: {uuid}"
181
184
click.echo(msg, err=True)
182
185
sys.exit(1)
183
186
184
187
iflen(results) >1:
185
-
click.echo(f"Error: More than one resource found for {self.cloud_resource_name} having name: {uuid}. Please use UUID to select the resource.", err=True)
188
+
click.echo(f"Error: More than one resource found for {self.cloud_resource_name} having name: {uuid}. Please use {self.resource_uuid_name} to select the resource.", err=True)
withSpinner(text=f"Querying by {self.resource_uuid_name}{uuid}"):
268
271
self.get_client_resource().get_by_uuid(uuid)
269
272
270
273
exceptCloudscaleApiExceptionase:
271
274
results=self.cmd_get_by_name(name=uuid)
272
275
ifnotresults:
273
276
ifself.resource_name_key:
274
-
msg=f"No resource found for {self.cloud_resource_name} having UUID or {self.resource_name_key}: {uuid}"
277
+
msg=f"No resource found for {self.cloud_resource_name} having {self.resource_uuid_name} or {self.resource_name_key}: {uuid}"
275
278
else:
276
-
msg=f"No resource found for {self.cloud_resource_name} having UUID: {uuid}"
279
+
msg=f"No resource found for {self.cloud_resource_name} having {self.resource_uuid_name}: {uuid}"
277
280
click.echo(msg, err=True)
278
281
sys.exit(1)
279
282
280
283
iflen(results) >1:
281
-
click.echo(f"Error: More than one resource found for {self.cloud_resource_name} having name: {uuid}. Please use UUID to select the resource.", err=True)
284
+
click.echo(f"Error: More than one resource found for {self.cloud_resource_name} having name: {uuid}. Please use {self.resource_uuid_name} to select the resource.", err=True)
0 commit comments