Skip to content

Commit

Permalink
fencing: When --port-as-ip is used both IP and plug should not be req…
Browse files Browse the repository at this point in the history
…uired

Resolves: rhbz#1214522
  • Loading branch information
marxsk committed Aug 5, 2015
1 parent 859c21a commit 155a51f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fence/agents/lib/fencing.py.py
Expand Up @@ -1131,6 +1131,10 @@ def _update_metadata(options):
else:
all_opt["login"]["required"] = "0"

if device_opt.count("port_as_ip"):
all_opt["ipaddr"]["required"] = "0"
all_opt["port"]["required"] = "0"

(available_actions, default_value) = _get_available_actions(device_opt)
all_opt["action"]["default"] = default_value

Expand Down

0 comments on commit 155a51f

Please sign in to comment.