Skip to content

Commit

Permalink
OS-1672 add support for 'SDC Agents' in the sysinfo output.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwilsdon committed Dec 10, 2012
1 parent 8debf6e commit ff0982e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/sysinfo
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,20 @@ END
done
cat <<END
},
END

if [[ ${ZONENAME} == "global" && -f /.smartdc_version \
&& -d /opt/smartdc/agents/lib/node_modules ]]; then

# on SDC we also want to output the agents versions
find /opt/smartdc/agents/lib/node_modules/ -maxdepth 2 \
-name package.json -exec cat {} \; \
| json -g -o json -a name version \
| sed -e "s/^\[/\"SDC Agents\": \[/" \
| sed -e "s/^/ /" | sed -e "s/\]$/\],/"
fi

cat <<END
"Network Interfaces": {
END

Expand Down

0 comments on commit ff0982e

Please sign in to comment.