Bug 28634 - Dead code: list_policies in /usr/lib/pymodules/python2.6/univention/admincli/admin.py
Dead code: list_policies in /usr/lib/pymodules/python2.6/univention/admincli/...
Status: RESOLVED DUPLICATE of bug 21585
Product: UCS
Classification: Unclassified
Component: UDM - CLI
UCS 3.0
All Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-24 15:18 CEST by Philipp Hahn
Modified: 2018-04-13 13:28 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Cleanup
Max CVSS v3 score:
hahn: Patch_Available+


Attachments
Remove dead code (4.76 KB, patch)
2012-09-24 15:18 CEST, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2012-09-24 15:18:21 CEST
Created attachment 4683 [details]
Remove dead code

list_policies wird in /usr/lib/pymodules/python2.6/univention/admincli/admin.py
nur innerhalb der Methode _doit() mit False initialisiert, nie geändert und nur
einmal ausgewertet.
Der Code sollte entfernt werden, weil
- 96 Zeilen toter Code entfernt werden
- univention_policy damit die einzige Implementierung für die Auswertung von
policy_result ist
Comment 1 Philipp Hahn univentionstaff 2013-11-11 09:30:25 CET
There's a bug in the argument handling, see Bug #21585 comment 1 for the fix.

*** This bug has been marked as a duplicate of bug 21585 ***