> + Throwables.propagate(e); > + } > + serialPortContents = > instanceApi.getSerialPortOutput(instance.get().name(), 4).contents(); > + String[] contentEntries = > serialPortContents.split("\n"); > + passwordDict = new > Gson().fromJson(contentEntries[contentEntries.length - 1], Map.class); > + } > + return passwordDict.get("encryptedPassword"); > + } > + }, 5, TimeUnit.MINUTES, false); // Notice that timeoutDuration > should be less than EXPIRE_DURATION > + } catch (Exception e) { > + throw Throwables.propagate(e); > + } > + > + return decryptPassword(checkNotNull(encryptedPassword, > "encryptedPassword shouldn't be null"), keys); > + > + } catch (NoSuchAlgorithmException e) {
+1 to just catch Exception --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-google/pull/170/files/ae6a31bb0190a334fd4fa75a51e7b48ebbc15669#r59007887