Skip to content

Commit

Permalink
Fix typo and correct import order
Browse files Browse the repository at this point in the history
  • Loading branch information
johscheuer committed Mar 18, 2019
1 parent cd45229 commit 259715b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kubernetes/utils/create_from_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
from os import path

import yaml
from kubernetes import client
from six import iteritems

from kubernetes import client


def create_namespaced_from_yaml(
k8s_client,
Expand Down Expand Up @@ -61,7 +62,7 @@ def create_namespaced_from_yaml(
kind = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', kind)
kind = re.sub('([a-z0-9])([A-Z])', r'\1_\2', kind).lower()

# If a namespace if defined overwrite it
# If a namespace is defined overwrite it
if namespace is not None:
yml_object["metadata"]["namespace"] = namespace
else:
Expand Down

0 comments on commit 259715b

Please sign in to comment.