Module: PbmHelperModule

Included in:
RbVmomi::PBM::PbmCapabilityProfile
Defined in:
lib/rvc/modules/spbm.rb

Instance Method Summary collapse

Instance Method Details

#_catch_spbm_resets(conn) ⇒ Object



38
39
40
41
42
43
44
45
46
47
# File 'lib/rvc/modules/spbm.rb', line 38

def _catch_spbm_resets(conn)
  begin
    yield
  rescue EOFError
    if conn
      conn.pbm = nil
    end
    raise "Connection to SPBM timed out, try again"
  end
end