Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1818

"servers" and "running" could be a part of ModelDescriptionConstants inside FindNonProgressingTask

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.6.6.Final
    • None
    • None
    • None

      Inside FindNonProgressingTask.java there are some hardcoded strings used e.g. servers, running.

      Operation operation = new Operation.Builder(address, QUERY)
                              .param(SELECT, new ModelNode().add(HOST).add(NAME))
                              .param(WHERE, new ModelNode().set(SERVER_STATE, "running"))
                              .build();
      
      ...
      
      return Promise.resolve(c.set("servers", servers));
      ...
      List<String> servers = c.get("servers");

      It could be replaced by dmr.ModelDescriptionConstants.

              rhn-support-abaral1 Anilabha Baral
              rhn-support-abaral1 Anilabha Baral
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: