Changeset 1815 for pykota/trunk

Show
Ignore:
Timestamp:
10/13/04 10:26:06 (20 years ago)
Author:
jalet
Message:

Doesn't suggest hardware(snmp) anymore if the command used was not snmpget.
This caused problem when snmpwalk was successful but not snmpget for example

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkhint

    r1814 r1815  
    2424# 
    2525# $Log$ 
     26# Revision 1.21  2004/10/13 08:26:06  jalet 
     27# Doesn't suggest hardware(snmp) anymore if the command used was not snmpget. 
     28# This caused problem when snmpwalk was successful but not snmpget for example 
     29# 
    2630# Revision 1.20  2004/10/13 08:09:19  jalet 
    2731# More complete PATH. 
     
    269273                    snmpcommand = self.accepts(SNMPTESTS, hostname) 
    270274                    if snmpcommand is not None : 
    271                         if hasSNMP : 
     275                        if hasSNMP and snmpcommand.startswith("snmpget ") : 
    272276                            # don't do a more complex test, just consider it will work 
    273277                            accounter = 'hardware(snmp)'