Bug 700221 - fail2ban banip command fails with: global name ‘time’ is not defined
Summary: fail2ban banip command fails with: global name ‘time’ is not defined
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: fail2ban
Version: 14
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Axel Thimm
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-27 19:56 UTC by Robin Bowes
Modified: 2012-08-16 12:10 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-16 12:10:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Trivial fix for "global name ‘time’ is not defined" error (401 bytes, patch)
2011-04-27 19:56 UTC, Robin Bowes
no flags Details | Diff

Description Robin Bowes 2011-04-27 19:56:59 UTC
Created attachment 495324 [details]
Trivial fix for "global name ‘time’ is not defined" error

The "banip" command fails:

$ sudo fail2ban-client set ssh-iptables banip 4.5.6.7
global name ‘time’ is not defined 

I've attached a trivial patch to fix the issue.

This is v0.8.4

Comment 1 Marco Hartgring 2011-11-11 06:11:27 UTC
This is also an issue in F16...

Comment 2 Daniel Black 2012-02-11 01:57:48 UTC
This the attached patch is the right fix. Documented by upstream developers ( http://blogs.buanzo.com.ar/2009/04/fail2ban-patch-ban-ip-address-manually.html#comment-2653 ) and their upstream commit: https://github.com/fail2ban/fail2ban/commit/7aad6685aff32112ec69e739191633ae8d15edce

Comment 3 Fedora End Of Life 2012-08-16 12:10:24 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.