ha-logs Display logs properly when they have been archived

When the logs have already been archived, v2 API returns a bare string,
which is not properly processed by CLI.
Ideally the API should be fixed, but v2 is going to be phased out, so
we will patch it up here.

Eventually CLI will use v3 for clearer code.

Hiro Asari avatar Hiro Asari

Push event #1117.4 passed

  • Ran for
AMD64
Ruby: 2.4.5
Git
travis-ci/travis.rb:.travis.yml@fbdc4b4
language: ruby
cache: bundler

os:
  - linux

rvm:
  - jruby
  - 2.2.7
  - 2.3.8
  - 2.4.5
  - 2.5.5
  - 2.6.3

jobs:
  include:
    - os: osx
      rvm: 2.5.5
    - os: osx
      rvm: 2.6.3
    - stage: deploy
      if: branch = master and type = push
      os: linux
      rvm: 2.6.3
      deploy:
        provider: rubygems
        api_key:
          secure: KcBpkFaes74KGMm8X/rRA8e13+t3PmkefsAvOAR+iF4g1GyuLSPkP92Fb9vFfsXBph+qmFh5rNa2lIRf/3RXW6COxY7CMMaARxUfJOKE0rmIwF0qfKI+RZDh6abg92iYngunMZVN8WVft6Lv9ZTOYCWxr1Zs1Ll/Rl4PfvHNd1g=
        gem: travis
        on:
          repo: travis-ci/travis.rb
          ruby: 2.6.3
        edge: true
Build Config
{
  "language": "ruby",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "cache": {
    "bundler": true
  },
  "rvm": [
    "jruby",
    "2.2.7",
    "2.3.8",
    "2.4.5",
    "2.5.5",
    "2.6.3"
  ],
  "jobs": {
    "include": [
      {
        "os": "osx",
        "rvm": "2.5.5"
      },
      {
        "os": "osx",
        "rvm": "2.6.3"
      },
      {
        "stage": "deploy",
        "if": "branch = master and type = push",
        "os": "linux",
        "rvm": "2.6.3",
        "deploy": [
          {
            "provider": "rubygems",
            "api_key": {
              "secure": "KcBpkFaes74KGMm8X/rRA8e13+t3PmkefsAvOAR+iF4g1GyuLSPkP92Fb9vFfsXBph+qmFh5rNa2lIRf/3RXW6COxY7CMMaARxUfJOKE0rmIwF0qfKI+RZDh6abg92iYngunMZVN8WVft6Lv9ZTOYCWxr1Zs1Ll/Rl4PfvHNd1g="
            },
            "gem": "travis",
            "on": {
              "repo": "travis-ci/travis.rb",
              "rvm": "2.6.3"
            },
            "edge": true
          }
        ]
      }
    ]
  }
}