From 7d791a8593bad3b30a2ec485886262183aaf21f5 Mon Sep 17 00:00:00 2001
From: Darren Worrall <darren@iweb.co.uk>
Date: Mon, 10 Aug 2015 19:24:16 +0100
Subject: [PATCH] More doc fixes

---
 cloud/cloudstack/cs_ip_address.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cloud/cloudstack/cs_ip_address.py b/cloud/cloudstack/cs_ip_address.py
index b635812694d..d3513b651ed 100644
--- a/cloud/cloudstack/cs_ip_address.py
+++ b/cloud/cloudstack/cs_ip_address.py
@@ -32,7 +32,8 @@ options:
   ip_address:
     description:
       - Public IP address. Required if C(state=absent)
-    required: true
+    required: false
+    default: null
   domain:
     description:
       - Domain the IP address is related to.
@@ -73,7 +74,7 @@ EXAMPLES = '''
     module: cs_ip_address
     network: My Network
   register: ip_address
-  when: create_instance|changed
+  when: instance.public_ip is undefined
 
 # Disassociate an IP address
 - local_action: