We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cdfdaf commit edc6cd2Copy full SHA for edc6cd2
src/frequenz/client/dispatch/__main__.py
@@ -148,9 +148,6 @@ async def update(
148
raise click.BadArgumentUsage("At least one field must be given to update.")
149
150
try:
151
- # if duration := new_fields.get("duration"):
152
- # new_fields.pop("duration")
153
- # new_fields["duration"] = timedelta(seconds=int(duration))
154
await ctx.obj["client"].update(dispatch_id=dispatch_id, new_fields=new_fields)
155
click.echo("Dispatch updated.")
156
except grpc.RpcError as e:
0 commit comments