Skip to content

Commit

Permalink
removed unwanted check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyothis Gireesan Mini committed Mar 20, 2018
1 parent 5747cd7 commit fe44db1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions library/image_streamer_deployment_plan_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,12 @@ def execute_module(self):
ansible_facts['deployment_plans'] = self.i3s_client.deployment_plans.get_by("name", name)
if ansible_facts['deployment_plans'] and options == 'usedby':
deployment_plan = ansible_facts['deployment_plans'][0]
if deployment_plan:
environmental_configuration = self.i3s_client.deployment_plans.get_usedby(deployment_plan['uri'])
ansible_facts['deployment_plans'][0]['deployment_plan_usedby'] = environmental_configuration
environmental_configuration = self.i3s_client.deployment_plans.get_usedby(deployment_plan['uri'])
ansible_facts['deployment_plans'][0]['deployment_plan_usedby'] = environmental_configuration
elif ansible_facts['deployment_plans'] and options == 'osdp':
deployment_plan = ansible_facts['deployment_plans'][0]
if deployment_plan:
environmental_configuration = self.i3s_client.deployment_plans.get_osdp(deployment_plan['uri'])
ansible_facts['deployment_plans'][0]['deployment_plan_osdp'] = environmental_configuration
environmental_configuration = self.i3s_client.deployment_plans.get_osdp(deployment_plan['uri'])
ansible_facts['deployment_plans'][0]['deployment_plan_osdp'] = environmental_configuration
else:
ansible_facts['deployment_plans'] = self.i3s_client.deployment_plans.get_all(**self.facts_params)

Expand Down

0 comments on commit fe44db1

Please sign in to comment.