cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sedukull <...@git.apache.org>
Subject [GitHub] cloudstack pull request: Made the adding new keyboard language sup...
Date Mon, 10 Aug 2015 08:39:41 GMT
Github user sedukull commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/669#discussion_r36611175
  
    --- Diff: server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java ---
    @@ -1425,19 +1423,39 @@ public boolean finalizeCommandsOnStart(Commands cmds, VirtualMachineProfile
prof
             CheckSshCommand check = new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(),
3922);
             cmds.addCommand("checkSsh", check);
     
    +        try {
    +            File uiFiles = new File("systemvm/js");
    +            if (!uiFiles.exists()) {
    +                uiFiles = new File("/usr/share/cloudstack-common/systemvm/js");
    +            }
    +            if (uiFiles.exists() && uiFiles.isDirectory()) {
    +                CopyFileInVmCommand copyFile = new CopyFileInVmCommand(uiFiles.getCanonicalPath(),
"/usr/local/cloud/systemvm/js", controlNic.getIp4Address());
    +                cmds.addCommand("copyFile", copyFile);
    +            } else {
    +                s_logger.error("Couldn't locate localization files for console proxy");
    +                return false;
    +            }
    +        } catch (IOException e) {
    +            s_logger.error("Failed to copy localization files for console proxy: " +
e.getMessage());
    --- End diff --
    
    should we return false in case of an exception?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message