[Bro-Dev] [JIRA] (BIT-1564) BroControl incorrectly references ok attribute of results even when None type is returned

Justin Azoff (JIRA) jira at bro-tracker.atlassian.net
Thu Apr 28 10:45:00 PDT 2016


     [ https://bro-tracker.atlassian.net/browse/BIT-1564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Azoff updated BIT-1564:
------------------------------
    Resolution: Merged  (was: Fixed)
        Status: Closed  (was: Merge Request)

> BroControl incorrectly references ok attribute of results even when None type is returned
> -----------------------------------------------------------------------------------------
>
>                 Key: BIT-1564
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1564
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: BroControl
>            Reporter: Scott Knick
>            Assignee: Justin Azoff
>            Priority: Low
>             Fix For: 2.5
>
>
> The various do_xxxx methods in bin/broctl attempt to reference the "ok" attribute of the results object returned from the BroCtl class' corresponding method. However, these methods can return the None type which has no "ok" attribute. This results in errors like this from BroControl:
> {{[root at system spool]# /usr/local/bro/bin/broctl install
> error: Unable to do xyz in plugin
> Error: 'NoneType' object has no attribute 'ok'}}
> I discovered this when returning False from the cmd_install_pre() method of my custom BroControl plugin.



--
This message was sent by Atlassian JIRA
(v1000.5.0#72002)


More information about the bro-dev mailing list