From 4fa0e87bd71785cce49623d51fcbb81805e3fe4c Mon Sep 17 00:00:00 2001 From: Oz N Tiram Date: Thu, 20 Jun 2019 14:30:27 +0200 Subject: [PATCH] Correct the documentation for create_from_dict The function can create one or more Kuberenetes objects based on the content of data. It can handle all API objects incuding `List` type, which by itself can contain more than one Kuberenetes API objects. --- kubernetes/utils/create_from_yaml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/utils/create_from_yaml.py b/kubernetes/utils/create_from_yaml.py index 1fe806f7c..ff8a6278a 100644 --- a/kubernetes/utils/create_from_yaml.py +++ b/kubernetes/utils/create_from_yaml.py @@ -90,8 +90,8 @@ def create_from_yaml( def create_from_dict(k8s_client, data, verbose=False, **kwargs): """ - Perform an action from a dictionary containing one or more valid kubernetes - objects + Perform an action from a dictionary containing valid kubernetes + API object (i.e. List, Service, etc). Input: k8s_client: an ApiClient object, initialized with the client args.