<p dir="auto">I am trying to work on a connection plugin using guestfish to modify a disk image directly. And while testing on devel ( <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/07a00593066cb439f0b9aea4e815259cc8a2ec75/hovercard" href="https://github.com/ansible/ansible/commit/07a00593066cb439f0b9aea4e815259cc8a2ec75"><tt>07a0059</tt></a> ), I stumbled on a few hurdles like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible -vvv all -c guestfs -i 'Fedora-Cloud-Atomic-23-20151215.x86_64.qcow2:/dev/sda1,'  -m ping 
Using /home/misc/.ansible.cfg as config file
Unexpected Exception: 'NoneType' object has no attribute 'split'
the full traceback was:

Traceback (most recent call last):
  File &quot;/home/misc/checkout/git/ansible/bin/ansible&quot;, line 85, in &lt;module&gt;
    sys.exit(cli.run())
  File &quot;/home/misc/checkout/git/ansible/lib/ansible/cli/adhoc.py&quot;, line 187, in run
    result = self._tqm.run(play)
  File &quot;/home/misc/checkout/git/ansible/lib/ansible/executor/task_queue_manager.py&quot;, line 237, in run
    play_return = strategy.run(iterator, play_context)
  File &quot;/home/misc/checkout/git/ansible/lib/ansible/plugins/strategy/linear.py&quot;, line 217, in run
    task_vars = self._variable_manager.get_vars(loader=self._loader, play=iterator._play, host=host, task=task)
  File &quot;/home/misc/checkout/git/ansible/lib/ansible/vars/__init__.py&quot;, line 245, in get_vars
    all_vars = combine_vars(all_vars, host.get_vars())
  File &quot;/home/misc/checkout/git/ansible/lib/ansible/inventory/host.py&quot;, line 129, in get_vars
    results['inventory_hostname_short'] = self.name.split('.')[0]
AttributeError: 'NoneType' object has no attribute 'split'"><pre class="notranslate"><code class="notranslate">$ ansible -vvv all -c guestfs -i 'Fedora-Cloud-Atomic-23-20151215.x86_64.qcow2:/dev/sda1,'  -m ping 
Using /home/misc/.ansible.cfg as config file
Unexpected Exception: 'NoneType' object has no attribute 'split'
the full traceback was:

Traceback (most recent call last):
  File "/home/misc/checkout/git/ansible/bin/ansible", line 85, in &lt;module&gt;
    sys.exit(cli.run())
  File "/home/misc/checkout/git/ansible/lib/ansible/cli/adhoc.py", line 187, in run
    result = self._tqm.run(play)
  File "/home/misc/checkout/git/ansible/lib/ansible/executor/task_queue_manager.py", line 237, in run
    play_return = strategy.run(iterator, play_context)
  File "/home/misc/checkout/git/ansible/lib/ansible/plugins/strategy/linear.py", line 217, in run
    task_vars = self._variable_manager.get_vars(loader=self._loader, play=iterator._play, host=host, task=task)
  File "/home/misc/checkout/git/ansible/lib/ansible/vars/__init__.py", line 245, in get_vars
    all_vars = combine_vars(all_vars, host.get_vars())
  File "/home/misc/checkout/git/ansible/lib/ansible/inventory/host.py", line 129, in get_vars
    results['inventory_hostname_short'] = self.name.split('.')[0]
AttributeError: 'NoneType' object has no attribute 'split'
</code></pre></div>
<p dir="auto">After digging, I found that this function <a href="https://github.com/ansible/ansible/blob/devel/lib/ansible/parsing/utils/addresses.py#L167">https://github.com/ansible/ansible/blob/devel/lib/ansible/parsing/utils/addresses.py#L167</a> kinda filter all non standards address, and reutnr None,None unless I am careful into what I give for argument.</p>
<p dir="auto">This also break connection plugins like chroot, jail and potentially the docker one.</p>
<p dir="auto"><strong>Issue Type:</strong></p>
<p dir="auto">Bug Report</p>
<p dir="auto"><strong>Ansible Version:</strong></p>
<p dir="auto">1.9.0.1</p>
<p dir="auto"><strong>Environment:</strong></p>
<p dir="auto">All</p>
<p dir="auto"><strong>Summary:</strong></p>
<p dir="auto">The win_copy/win_file/win_template modules were added during earlier development and then reverted. However, win_copy.py and win_template.py remain in the actions_plugins dir.</p>
<p dir="auto">If they're going to eventually be used, we can keep them - if the new version of the modules isn't going to use them, they should probably be removed.</p>
<p dir="auto"><strong>Steps To Reproduce:</strong></p>
<p dir="auto">Look in the actions plugin directory.</p>