mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
* usr/lib/byobu/.shutil:
- fix slow/lag associated with testing for metadata server
This commit is contained in:
parent
c17e09aada
commit
b64a1510e6
2 changed files with 10 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -32,6 +32,8 @@ byobu (4.14) unreleased; urgency=low
|
||||||
- import constants
|
- import constants
|
||||||
* usr/lib/byobu/date:
|
* usr/lib/byobu/date:
|
||||||
- add trailing whitespace back
|
- add trailing whitespace back
|
||||||
|
* usr/lib/byobu/.shutil:
|
||||||
|
- fix slow/lag associated with testing for metadata server
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Jun 2011 16:16:29 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Jun 2011 16:16:29 -0500
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,14 @@ readfile() {
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata_available() {
|
metadata_available() {
|
||||||
wget -q -O- --timeout=1 http://169.254.169.254
|
# This is really ugly. We need a reliable, fast way of determining
|
||||||
|
# if a metadata service is available, that does NOT slow down non-ec2
|
||||||
|
# machines.
|
||||||
|
if grep -qs "^domain ec2.internal" /etc/resolv.conf; then
|
||||||
|
wget -q -O- --timeout=1 http://169.254.169.254
|
||||||
|
else
|
||||||
|
false
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
status_freq() {
|
status_freq() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue