~mariogrip/unity8-preview-lxc/unity8-preview-lxc

« back to all changes in this revision

Viewing changes to bin/unity8-lxc-setup

  • Committer: CI Train Bot
  • Author(s): Chris Townsend
  • Date: 2014-12-17 16:05:01 UTC
  • mfrom: (39.1.1 fix-eth0-ip)
  • Revision ID: ci-train-bot@canonical.com-20141217160501-jpl0xf9p756eazfj
Fix issue where the wrong interface/IP address combo was being returned when checking if the network is up when trying to update the Unity 8 LXC. Fixes: #1400785
Approved by: Stephen M. Webb

Show diffs side-by-side

added added

removed removed

Lines of Context:
338
338
            parser.error("Unable to start the container.")
339
339
        container.wait("RUNNING")
340
340
 
341
 
    if not container.get_ips(timeout=30):
 
341
    if not container.get_ips(interface='eth0', timeout=30):
342
342
        print("Not able to connect to the network.")
343
343
        sys.exit(0)
344
344