Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
cxznmhdcxz committed Oct 29, 2024
1 parent 54f7fd9 commit 99b965c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/virtual-network-tap/azext_vnettap/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
args_schema.nic_id._registered = False

return args_schema

def pre_operations(self):
args = self.ctx.args

Expand Down Expand Up @@ -63,10 +63,10 @@ def _build_arguments_schema(cls, *args, **kwargs):
args_schema.vtap_id._registered = False

return args_schema

def pre_operations(self):
args = self.ctx.args
template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/virtualNetworkTaps/{}"
template = "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/virtualNetworkTaps/{}"
if not parse_proxy_resource_id(args.vnet_tap.to_serialized_data()):
args.vtap_id = template.format(self.ctx.subscription_id, args.resource_group, args.vnet_tap)
else:
Expand Down

0 comments on commit 99b965c

Please sign in to comment.