Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ disable=
no-member,
no-value-for-parameter,
raise-missing-from,
self-assigning-variable,
subprocess-run-check,
super-with-arguments,
too-many-arguments,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,6 @@ def _set_parameters_for_customize_template(cmd,
certificate_subject_name,
secret_identifier,
parameter_file):
cli_ctx = cli_ctx
parameters = get_file_json(parameter_file)['parameters']
if parameters is None:
raise CLIError('Invalid parameters file')
Expand Down
5 changes: 1 addition & 4 deletions src/azure-cli/azure/cli/command_modules/sqlvm/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,10 @@ def sqlvm_group_update(instance, domain_fqdn=None, cluster_operator_account=None
def sqlvm_aglistener_create(client, cmd, availability_group_listener_name, sql_virtual_machine_group_name,
resource_group_name, availability_group_name, ip_address, subnet_resource_id,
load_balancer_resource_id, probe_port, sql_virtual_machine_instances, port=1433,
public_ip_address_resource_id=None, vnet_name=None):
public_ip_address_resource_id=None, vnet_name=None): # pylint: disable=unused-argument
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If vnet_name is not used, can we remove it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we remove it, it will be a break change to the upper-level command az sql vm group ag-listener create as --vnet-name will be removed. I only fix the linter error, so prefer not to change it.

'''
Creates an availability group listener
'''
# Not using vnet, just for validation
vnet_name = vnet_name

# Create the private ip address
private_ip_object = PrivateIPAddress(ip_address=ip_address,
subnet_resource_id=subnet_resource_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def create_spark_batch_job(cmd, workspace_name, spark_pool_name, job_name, main_
file = main_definition_file
class_name = main_class_name
arguments = command_line_arguments
configuration = configuration
# dotnet spark
if language.upper() == SparkBatchLanguage.SparkDotNet.upper() or language.upper() == SparkBatchLanguage.CSharp.upper():
file = DOTNET_FILE
Expand Down