Skip to content

Commit

Permalink
Fix small bug in create_playbook_configuration method on decapodlib.c…
Browse files Browse the repository at this point in the history
…lient
  • Loading branch information
9seconds committed Nov 23, 2016
1 parent 26857a4 commit 1f5ae6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions decapodlib/decapodlib/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ def get_playbook_configuration_version(self, playbook_configuration_id,
playbook_configuration_id, version))
return self._session.get(url, **kwargs)

def create_playbook_configuration(self, name, cluster_id, playbook,
def create_playbook_configuration(self, name, cluster_id, playbook_id,
server_ids, **kwargs):
"""This method creates new playbook configuration model.
Expand All @@ -852,7 +852,7 @@ def create_playbook_configuration(self, name, cluster_id, playbook,
:param str name: Name of the playbook configuration.
:param str cluster_id: UUID4 (:rfc:`4122`) in string form
of cluster's ID
:param str playbook: ID of playbook to use.
:param str playbook_id: ID of playbook to use.
:param server_ids: List of server UUID4 (:rfc:`4122`) in string
form of server model IDs.
:type server_ids: [:py:class:`str`, ...]
Expand All @@ -868,7 +868,7 @@ def create_playbook_configuration(self, name, cluster_id, playbook,
payload = {
"name": name,
"cluster_id": cluster_id,
"playbook": playbook,
"playbook_id": playbook_id,
"server_ids": list(set(server_ids))
}

Expand Down

0 comments on commit 1f5ae6e

Please sign in to comment.