typos wicd-cli

Bug #1828120 reported by Adam Fairbrother
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wicd
New
Undecided
Unassigned

Bug Description

there are typos in the wicd-cli file that prevent it from working correctly:

-- Cannot show encryption types

-- Cannot save network

These can both be fixed with the follwing:

--- /usr/share/wicd/cli/wicd-cli.py 2014-12-21 11:40:46.000000000 -0800
+++ wicd-cli.py 2019-05-07 13:58:17.207323680 -0700
@@ -289,7 +289,7 @@
     if len(prop) == 0:
         return "None"
     else:
- tmp = [(x[0], x[1].replace('_', ' ')) for x in type['required']]
+ tmp = [(x[0], x[1].replace('_', ' ')) for x in t['required']]
         return ', '.join("%s (%s)" % (x, y) for x, y in tmp)

 if options.wireless and options.list_encryption_types:
@@ -309,9 +309,9 @@
 if options.save and options.network > -1:
     if options.wireless:
         is_valid_wireless_network_id(options.network)
- config.SaveWirelessNetworkProfile(options.network)
+ wireless.SaveWirelessNetworkProfile(options.network)
     elif options.wired:
- config.SaveWiredNetworkProfile(options.name)
+ wired.SaveWiredNetworkProfile(options.name)
     op_performed = True

 if not op_performed:

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.