31443145314631473148314931503151315231533154
String xml = diskdef.toString(); return attachOrDetachDevice(conn, attach, vmName, xml); } finally { if (dm != null) { dm.free(); } } } protected synchronized String attachOrDetachDevice(Connect conn,
31783179318031813182318331843185318631873188
} catch (Exception e) { throw new InternalErrorException(e.toString()); } finally { if (dm != null) { try { dm.free(); } catch (LibvirtException l) { } } }
34043405340634073408340934103411341234133414
} catch (Exception e) { s_logger.trace(e.getMessage()); } finally { try { if (dm != null) { dm.free(); } } catch (final LibvirtException e) { } }
34483449345034513452345334543455345634573458
} catch (final LibvirtException e) { s_logger.warn("Unable to get vms", e); } finally { try { if (dm != null) { dm.free(); } } catch (final LibvirtException e) { } }
35033504350535063507350835093510351135123513
} catch (final LibvirtException e) { s_logger.warn("Unable to get vms", e); } finally { try { if (dm != null) { dm.free(); } } catch (LibvirtException e) { } }
35313532353335343535353635373538353935403541
} catch (Exception e) { s_logger.warn("Unable to get vms", e); } finally { try { if (dm != null) { dm.free(); } } catch (LibvirtException e) { } }
36383639364036413642364336443645364636473648
s_logger.warn("Failed to create vm", e); msg = e.getMessage(); } finally { try { if (dm != null) { dm.free(); } } catch (LibvirtException e) { } }
36763677367836793680368136823683368436853686
} catch (Exception e) { s_logger.debug("Failed to get vm status:" + e.getMessage()); } finally { try { if (dm != null) { dm.free(); } } catch (LibvirtException l) { } }
37083709371037113712371337143715371637173718
} catch (LibvirtException e) { } finally { try { if (dm != null) { dm.free(); } } catch (LibvirtException l) { } }
11471148114911501151115211531154115511561157
} } catch (LibvirtException e) { // this is what we want, no domain found } finally { if (dm != null) { dm.free(); } } conn.domainCreateXML(domainXML, 0); } catch (final LibvirtException e) {