Remove the unnecessary default value

since the ssh_port is register by oslo_config [0] [1], it will not
need to get the default value.

[0]: https://github.com/openstack/freezer/blob/master/freezer/common/config.py#L80
[1]: https://github.com/openstack/freezer/blob/master/freezer/common/config.py#L460

Change-Id: I5f8873717f232b1b7266ed56aeaa0dc982157c90
This commit is contained in:
caoyuan 2018-02-05 14:17:09 +08:00
parent 482db4094a
commit e2bda1ac39
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ def storage_from_dict(backup_args, max_segment_size):
container,
backup_args['ssh_key'], backup_args['ssh_username'],
backup_args['ssh_host'],
int(backup_args.get('ssh_port', freezer_config.DEFAULT_SSH_PORT)),
int(backup_args['ssh_port']),
max_segment_size=max_segment_size)
else:
raise Exception("No storage found for name {0}".format(