Skip to content

Commit 151e4c4

Browse files
committed
fix undefined IOError in retry
1 parent c248411 commit 151e4c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/helpers.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function fetch_misc_apis_versions(ctx::KuberContext; override=nothing, verbose::
144144
vers = @repeat max_tries try
145145
getAPIVersions(ApisApi(ctx.client))
146146
catch e
147-
@retry if isa(e, IOError)
147+
@retry if isa(e, Base.IOError)
148148
@debug("Retrying getAPIVersions")
149149
sleep(2)
150150
end
@@ -188,7 +188,7 @@ function fetch_core_version(ctx::KuberContext; override=nothing, verbose::Bool=f
188188
api_vers = @repeat max_tries try
189189
getCoreAPIVersions(CoreApi(ctx.client))
190190
catch e
191-
@retry if isa(e, IOError)
191+
@retry if isa(e, Base.IOError)
192192
@debug("Retrying getCoreAPIVersions")
193193
sleep(2)
194194
end
@@ -263,7 +263,7 @@ function retry_on_error(f::Function; max_tries=1)
263263
@repeat max_tries try
264264
return f()
265265
catch e
266-
@retry if isa(e, IOError)
266+
@retry if isa(e, Base.IOError)
267267
@debug("Retrying Kubernetes API call ...")
268268
sleep(2)
269269
end

0 commit comments

Comments
 (0)