ctld: Don't add an iscsi port for targets with only kernel ports
PR: 293076
Reviewed by: asomers
Fixes: 969876fcee ("ctld: parse config file independently of getting kernel info")
Differential Revision: https://reviews.freebsd.org/D56523
This commit is contained in:
committed by
John Baldwin
parent
7982985bdf
commit
614ef71849
@@ -1461,7 +1461,7 @@ target::verify()
|
||||
t_auth_group = t_conf->find_auth_group("default");
|
||||
assert(t_auth_group != nullptr);
|
||||
}
|
||||
if (t_ports.empty()) {
|
||||
if (t_ports.empty() && t_pports.empty()) {
|
||||
struct portal_group *pg = default_portal_group();
|
||||
assert(pg != NULL);
|
||||
t_conf->add_port(this, pg, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user