diff options
| -rw-r--r-- | jobs/miscellanea.txt.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/miscellanea.txt.in b/jobs/miscellanea.txt.in index 9a0bf16..ef9b371 100644 --- a/jobs/miscellanea.txt.in +++ b/jobs/miscellanea.txt.in @@ -176,10 +176,10 @@ plugin: shell estimated_duration: 0.1 id: miscellanea/get_maas_version command: - if [ -e /etc/installed-by-maas ]; then + if [ -s /etc/installed-by-maas ]; then cat /etc/installed-by-maas else - echo "NOT FOUND" >> /dev/stderr + echo "MAAS VERSION NOT FOUND" >> /dev/stderr false fi _description: If system was installed via MAAS from a cert server, the MAAS version used should be contained in /etc/installed-by-maas |
