Skip to content

Commit

Permalink
Code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
elcfd committed Jun 13, 2024
1 parent 0d8b2fb commit 4380633
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/modules/digital_ocean_kubernetes_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,11 @@ def get_all(self):

def run(module):
cluster = DOKubernetesInfo(module)
if module.params["name"]:
cluster.get()
else:
name = module.params.get("name", None)
if name is None:
cluster.get_all()
else:
cluster.get()


def main():
Expand Down

0 comments on commit 4380633

Please sign in to comment.