wicd-cli cannot save configuration

Bug #1033804 reported by Martin Fox
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wicd (Ubuntu)
New
Undecided
Unassigned

Bug Description

This problem occurs on Ubuntu 11.10 and 12.04.

Using the "--save" option in wicd-cli generates error strings and does not save the configuration. The problem is due to some simple bugs in the script. The "save" functionality is implemented near the end. The bogus code reads like so:

if options.save and options.network > -1:
 if options.wireless:
  is_valid_wireless_network_id(options.network)
  config.SaveWirelessNetworkProfile(options.network)
 elif options.wired:
  config.SaveWiredNetworkProfile(options.name)
 op_performed = True

However, the "config" object does not implement the Save methods; these methods are implemented in the "wired" and "wireless" objects.

if options.save and options.network > -1:
 if options.wireless:
  is_valid_wireless_network_id(options.network)
  wireless.SaveWirelessNetworkProfile(options.network)
 elif options.wired:
  wired.SaveWiredNetworkProfile(options.name)
 op_performed = True

Version information:~$ apt-cache policy wicd-curses
wicd-curses:
  Installed: 1.7.0+ds1-6ubuntu0.11.10.1
  Candidate: 1.7.0+ds1-6ubuntu0.11.10.1
  Version table:
 *** 1.7.0+ds1-6ubuntu0.11.10.1 0
        500 http://ports.ubuntu.com/ubuntu-ports/ oneiric-security/universe armel Packages
        500 http://ports.ubuntu.com/ubuntu-ports/ oneiric-updates/universe armel Packages
        100 /var/lib/dpkg/status
     1.7.0+ds1-6 0
        500 http://ports.ubuntu.com/ubuntu-ports/ oneiric/universe armel Packages

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.