Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Renamed private method in the Container class
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Aubert committed May 31, 2017
1 parent 8e51302 commit dead20a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lxdock/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def _setup_ip(self):
ip = get_ip(self._container)
if not ip:
logger.info('No IP yet, waiting for at most 10 seconds...')
ip = self._wait_for_ipv4_ip()
ip = self._wait_for_ip()
if not ip:
logger.warn('STILL no IP! Container is up, but probably broken.')
logger.info('Maybe that restarting it will help? Not trying to provision.')
Expand Down Expand Up @@ -439,7 +439,7 @@ def _unsetup_hostnames(self):
if etchosts.changed:
etchosts.save()

def _wait_for_ipv4_ip(self, seconds=10):
def _wait_for_ip(self, seconds=10):
""" Waits some time before trying to get the IP of the container and returning it. """
for i in range(seconds):
time.sleep(1)
Expand Down

0 comments on commit dead20a

Please sign in to comment.