cloudstack: remove self.result, is defined in super class from utils

reviewable/pr18780/r1
Rene Moser 11 years ago
parent 63e9014e16
commit 7705d1bb50

@ -97,7 +97,6 @@ extends_documentation_fragment: cloudstack
''' '''
EXAMPLES = ''' EXAMPLES = '''
---
# create an account in domain 'CUSTOMERS' # create an account in domain 'CUSTOMERS'
local_action: local_action:
module: cs_account module: cs_account

@ -66,7 +66,6 @@ extends_documentation_fragment: cloudstack
''' '''
EXAMPLES = ''' EXAMPLES = '''
---
# Create a affinity group # Create a affinity group
- local_action: - local_action:
module: cs_affinitygroup module: cs_affinitygroup
@ -114,9 +113,6 @@ class AnsibleCloudStackAffinityGroup(AnsibleCloudStack):
def __init__(self, module): def __init__(self, module):
AnsibleCloudStack.__init__(self, module) AnsibleCloudStack.__init__(self, module)
self.result = {
'changed': False,
}
self.affinity_group = None self.affinity_group = None

@ -88,7 +88,6 @@ extends_documentation_fragment: cloudstack
''' '''
EXAMPLES = ''' EXAMPLES = '''
---
# Allow inbound port 80/tcp from 1.2.3.4 to 4.3.2.1 # Allow inbound port 80/tcp from 1.2.3.4 to 4.3.2.1
- local_action: - local_action:
module: cs_firewall module: cs_firewall
@ -171,9 +170,6 @@ class AnsibleCloudStackFirewall(AnsibleCloudStack):
def __init__(self, module): def __init__(self, module):
AnsibleCloudStack.__init__(self, module) AnsibleCloudStack.__init__(self, module)
self.result = {
'changed': False,
}
self.firewall_rule = None self.firewall_rule = None

@ -164,7 +164,6 @@ extends_documentation_fragment: cloudstack
''' '''
EXAMPLES = ''' EXAMPLES = '''
---
# Create a instance on CloudStack from an ISO # Create a instance on CloudStack from an ISO
# NOTE: Names of offerings and ISOs depending on the CloudStack configuration. # NOTE: Names of offerings and ISOs depending on the CloudStack configuration.
- local_action: - local_action:

@ -56,7 +56,6 @@ extends_documentation_fragment: cloudstack
''' '''
EXAMPLES = ''' EXAMPLES = '''
---
# Create an instance group # Create an instance group
- local_action: - local_action:
module: cs_instancegroup module: cs_instancegroup

@ -99,7 +99,6 @@ extends_documentation_fragment: cloudstack
''' '''
EXAMPLES = ''' EXAMPLES = '''
---
# Register an ISO if ISO name does not already exist. # Register an ISO if ISO name does not already exist.
- local_action: - local_action:
module: cs_iso module: cs_iso
@ -185,9 +184,6 @@ class AnsibleCloudStackIso(AnsibleCloudStack):
def __init__(self, module): def __init__(self, module):
AnsibleCloudStack.__init__(self, module) AnsibleCloudStack.__init__(self, module)
self.result = {
'changed': False,
}
self.iso = None self.iso = None
def register_iso(self): def register_iso(self):

@ -106,7 +106,6 @@ extends_documentation_fragment: cloudstack
''' '''
EXAMPLES = ''' EXAMPLES = '''
---
# 1.2.3.4:80 -> web01:8080 # 1.2.3.4:80 -> web01:8080
- local_action: - local_action:
module: cs_portforward module: cs_portforward
@ -144,7 +143,6 @@ EXAMPLES = '''
public_port: 22 public_port: 22
private_port: 22 private_port: 22
state: absent state: absent
''' '''
RETURN = ''' RETURN = '''

@ -51,7 +51,6 @@ extends_documentation_fragment: cloudstack
''' '''
EXAMPLES = ''' EXAMPLES = '''
---
# Create a security group # Create a security group
- local_action: - local_action:
module: cs_securitygroup module: cs_securitygroup
@ -94,9 +93,6 @@ class AnsibleCloudStackSecurityGroup(AnsibleCloudStack):
def __init__(self, module): def __init__(self, module):
AnsibleCloudStack.__init__(self, module) AnsibleCloudStack.__init__(self, module)
self.result = {
'changed': False,
}
self.security_group = None self.security_group = None

@ -194,9 +194,6 @@ class AnsibleCloudStackSecurityGroupRule(AnsibleCloudStack):
def __init__(self, module): def __init__(self, module):
AnsibleCloudStack.__init__(self, module) AnsibleCloudStack.__init__(self, module)
self.result = {
'changed': False,
}
def _tcp_udp_match(self, rule, protocol, start_port, end_port): def _tcp_udp_match(self, rule, protocol, start_port, end_port):

@ -63,7 +63,6 @@ extends_documentation_fragment: cloudstack
''' '''
EXAMPLES = ''' EXAMPLES = '''
---
# create a new private / public key pair: # create a new private / public key pair:
- local_action: cs_sshkeypair name=linus@example.com - local_action: cs_sshkeypair name=linus@example.com
register: key register: key
@ -114,9 +113,6 @@ class AnsibleCloudStackSshKey(AnsibleCloudStack):
def __init__(self, module): def __init__(self, module):
AnsibleCloudStack.__init__(self, module) AnsibleCloudStack.__init__(self, module)
self.result = {
'changed': False,
}
self.ssh_key = None self.ssh_key = None

@ -81,7 +81,6 @@ extends_documentation_fragment: cloudstack
''' '''
EXAMPLES = ''' EXAMPLES = '''
---
# Create a VM snapshot of disk and memory before an upgrade # Create a VM snapshot of disk and memory before an upgrade
- local_action: - local_action:
module: cs_vmsnapshot module: cs_vmsnapshot
@ -175,9 +174,6 @@ class AnsibleCloudStackVmSnapshot(AnsibleCloudStack):
def __init__(self, module): def __init__(self, module):
AnsibleCloudStack.__init__(self, module) AnsibleCloudStack.__init__(self, module)
self.result = {
'changed': False,
}
def get_snapshot(self): def get_snapshot(self):

Loading…
Cancel
Save