Skip to content

Commit

Permalink
Fix docstrings for Kubernetes Backcompat module (#12422)
Browse files Browse the repository at this point in the history
This were missed in apache/airflow#12384

GitOrigin-RevId: bc4bb30588607b10b069ab63ddf2ba7b7ee673ed
  • Loading branch information
kaxil authored and Cloud Composer Team committed Mar 10, 2022
1 parent 7caa33f commit 6d57bb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions airflow/providers/cncf/kubernetes/backcompat/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ def __init__(self, name, configs):
:param name: the name of the volume mount
:type name: str
:param configs: dictionary of any features needed for volume.
We purposely keep this vague since there are multiple volume types with changing
configs.
:param configs: dictionary of any features needed for volume. We purposely keep this
vague since there are multiple volume types with changing configs.
:type configs: dict
"""
self.name = name
Expand All @@ -48,7 +47,7 @@ def to_k8s_client_obj(self) -> k8s.V1Volume:
"""
Converts to k8s object.
:return Volume Mount k8s object
:return: Volume Mount k8s object
"""
resp = k8s.V1Volume(name=self.name)
for k, v in self.configs.items():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def to_k8s_client_obj(self) -> k8s.V1VolumeMount:
"""
Converts to k8s object.
:return Volume Mount k8s object
:return: Volume Mount k8s object
"""
return k8s.V1VolumeMount(
name=self.name, mount_path=self.mount_path, sub_path=self.sub_path, read_only=self.read_only
Expand Down

0 comments on commit 6d57bb6

Please sign in to comment.