Skip to content

Commit

Permalink
Remove use of deprecated kafka_lib module in EXAMPLES
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenSorriaux committed Apr 13, 2024
1 parent fa71433 commit edf73b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions library/kafka_topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@
# creates a topic 'test' with provided configuation for plaintext
# configured Kafka and Zookeeper
- name: create topic
kafka_lib:
resource: 'topic'
kafka_topic:
api_version: "1.0.1"
name: 'test'
partitions: 2
Expand All @@ -160,8 +159,7 @@
# creates a topic for a sasl_ssl configured Kafka and plaintext Zookeeper
- name: create topic
kafka_lib:
resource: 'topic'
kafka_topic:
api_version: "1.0.1"
name: 'test'
partitions: 2
Expand All @@ -183,8 +181,7 @@
# creates a topic for a plaintext configured Kafka and a digest
# authentication Zookeeper
- name: create topic
kafka_lib:
resource: 'topic'
kafka_topic:
api_version: "1.0.1"
name: 'test'
partitions: 2
Expand All @@ -203,8 +200,7 @@
# deletes a topic
- name: delete topic
kafka_lib:
resource: 'topic'
kafka_topic:
api_version: "1.0.1"
name: 'test'
state: 'absent'
Expand All @@ -216,8 +212,7 @@
# deletes a topic using automatic api_version discovery
- name: delete topic
kafka_lib:
resource: 'topic'
kafka_topic:
name: 'test'
state: 'absent'
zookeeper: >
Expand Down
2 changes: 1 addition & 1 deletion library/kafka_topics.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
# deletes a topic
- name: delete topic
kafka_lib:
kafka_topics:
topics:
- name: 'test'
state: 'absent'
Expand Down

0 comments on commit edf73b0

Please sign in to comment.