Add IP address to scan results (#602)
This commit is contained in:
committed by
Kota Kanbe
parent
562ff7807d
commit
7a5793c562
@@ -246,6 +246,23 @@ func (o *redhat) checkDependencies() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *redhat) preCure() error {
|
||||
if err := o.detectIPAddr(); err != nil {
|
||||
o.log.Debugf("Failed to detect IP addresses: %s", err)
|
||||
}
|
||||
// Ignore this error as it just failed to detect the IP addresses
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *redhat) postScan() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *redhat) detectIPAddr() (err error) {
|
||||
o.ServerInfo.IPv4Addrs, o.ServerInfo.IPv6Addrs, err = o.ip()
|
||||
return err
|
||||
}
|
||||
|
||||
func (o *redhat) scanPackages() error {
|
||||
installed, err := o.scanInstalledPackages()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user