~ubuntu-branches/ubuntu/lucid/landscape-client/lucid-updates

« back to all changes in this revision

Viewing changes to landscape/lib/tests/test_network.py

  • Committer: Package Import Robot
  • Author(s): Andreas Hasenack
  • Date: 2012-04-10 14:28:48 UTC
  • mfrom: (1.1.27)
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: package-import@ubuntu.com-20120410142848-7xsy4g2xii7y7ntc
ImportĀ upstreamĀ versionĀ 12.04.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
        that returned by ifconfig.
20
20
        """
21
21
        device_info = get_active_device_info()
22
 
        result = Popen(["ifconfig"], stdout=PIPE).communicate()[0]
 
22
        result = Popen(["/sbin/ifconfig"], stdout=PIPE).communicate()[0]
23
23
        interface_blocks = dict(
24
24
            [(block.split()[0], block.upper()) for block in
25
25
             filter(None, result.split("\n\n"))])