Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: jclouds-compute
    • Labels:

      Description

      ProvisionableToImage.is64Bit has some odd switch logic. Should the CDROM case fall through to HDD? Found via error-prone:

      private boolean is64Bit(String from, org.jclouds.profitbricks.domain.Image.Type type) {
         switch (type) {
            case CDROM:
               if (!Strings.isNullOrEmpty(from))
                  return from.matches("x86_64|amd64");
            case HDD: // HDD provided by ProfitBricks are always 64-bit
            default:
               return true;
         }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              devcsrj Reijhanniel Jearl Campos
              Reporter:
              gaul Andrew Gaul
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: