Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
azure-cli.28525
ac_avoid_isclose.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ac_avoid_isclose.patch of Package azure-cli.28525
diff -Nru azure-cli-2.17.1.orig/azure/cli/command_modules/acs/_validators.py azure-cli-2.17.1/azure/cli/command_modules/acs/_validators.py --- azure-cli-2.17.1.orig/azure/cli/command_modules/acs/_validators.py 2020-12-31 09:24:48.000000000 +0100 +++ azure-cli-2.17.1/azure/cli/command_modules/acs/_validators.py 2023-03-10 13:49:22.644132969 +0100 @@ -7,7 +7,8 @@ import os import os.path import re -from math import isnan, isclose +from math import isnan +from pytest import approx from ipaddress import ip_network # pylint: disable=no-name-in-module,import-error @@ -285,7 +286,7 @@ raise CLIError("--spot_max_price can only be set when --priority is Spot") if len(str(namespace.spot_max_price).split(".")) > 1 and len(str(namespace.spot_max_price).split(".")[1]) > 5: raise CLIError("--spot_max_price can only include up to 5 decimal places") - if namespace.spot_max_price <= 0 and not isclose(namespace.spot_max_price, -1.0, rel_tol=1e-06): + if namespace.spot_max_price <= 0 and not namespace.spot_max_price == approx(-1.0, rel=1e-06): raise CLIError( "--spot_max_price can only be any decimal value greater than zero, or -1 which indicates " "default price to be up-to on-demand")
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor