Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Only show one interface for the plugin IP
Browse files Browse the repository at this point in the history
Most plugins that have more then one IP use VNET, so this assumes the first interface to be the default one.

FreeNAS Ticket: #42641
  • Loading branch information
Brandon Schneider committed Aug 22, 2018
1 parent 8cfe862 commit c5dd9c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iocage_lib/ioc_plugin.py
Expand Up @@ -536,7 +536,7 @@ def __fetch_plugin_post_install__(self, conf, _conf, jaildir, uuid):
dhcp = True
ip = ""

os.environ["IOCAGE_PLUGIN_IP"] = ip
os.environ["IOCAGE_PLUGIN_IP"] = ip.rsplit(',')[0]

# We need to pipe from tar to the root of the jail.

Expand Down Expand Up @@ -614,7 +614,8 @@ def __fetch_plugin_post_install__(self, conf, _conf, jaildir, uuid):
try:
with open(ui_json, "r") as u:
admin_portal = json.load(u)["adminportal"]
admin_portal = admin_portal.replace("%%IP%%", ip)
admin_portal = admin_portal.replace("%%IP%%",
ip.rsplit(',')[0])
iocage_lib.ioc_common.logit(
{
"level": "INFO",
Expand Down

0 comments on commit c5dd9c6

Please sign in to comment.