Skip to content

Commit

Permalink
Merge pull request #83 from moul/userdata
Browse files Browse the repository at this point in the history
Added get_userdata helper (#80)
  • Loading branch information
moul committed Sep 7, 2015
2 parents 4e0490d + 59a81b8 commit 0b8cdc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Linux/tree-armv7l/functions
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ get_metadata() {
done
}

get_userdata() {
key=$1
wget -qO- "http://169.254.42.42/user_data/${key}"
}

has_metadata() {
(
for idx in $(seq -w 0 $(oc-metadata --cached TAGS)); do
Expand Down

0 comments on commit 0b8cdc4

Please sign in to comment.