Skip to content

Commit

Permalink
mypy error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavcracker committed Jan 24, 2025
1 parent 78f3a42 commit c54de99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubemarine/kubernetes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import re
import json
from contextlib import contextmanager
from typing import List, Dict, Iterator, Any, Optional
from typing import List, Dict, Iterator, Any, Optional, Union

import yaml
from jinja2 import Template
Expand Down Expand Up @@ -1296,7 +1296,7 @@ def prepare_audit_policy(group: NodeGroup) -> None:
# upload rules on cluster
group.put(io.StringIO(policy_config_file), audit_file_name, sudo=True, backup=True)

def migrate_kubeadm_config(group: NodeGroup, config_file: str) -> None:
def migrate_kubeadm_config(group: Union[NodeGroup, DeferredGroup], config_file: str) -> None:
"""
Check if migration is needed based on Kubernetes minor version and perform the migration.
Expand Down

0 comments on commit c54de99

Please sign in to comment.