From f22d27fc8e2986dcb2cad5584501101240a01842 Mon Sep 17 00:00:00 2001 From: Vitor Lobo Ramos Date: Mon, 16 Apr 2018 16:46:25 -0300 Subject: [PATCH] Some corrections --- Atomic/atomic.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Atomic/atomic.py b/Atomic/atomic.py index 1f106aff..39cc581a 100644 --- a/Atomic/atomic.py +++ b/Atomic/atomic.py @@ -14,10 +14,9 @@ from .discovery import RegistryInspect, RegistryInspectError - def find_repo_tag(d, Id, image_name): - # The image_in_repotags function fetches the name of the image inside the "repotag" repository, and if it finds, + # The image_in_repotags function fetches the name of the image inside the "repotag" repository, and if found, # returns the name of the image, or image list. def image_in_repotags(image_name, repotags): @@ -124,7 +123,7 @@ def pull(self): prevstatus = status util.write_out("") - # If for some reason the NameError or AtributeError class appears in the path, + # If for some reason the NameError or AttributeError class appears in the path, # the exception is thrown to ignore the "pass" problem. # The NameError class handles only unqualified names while AtributeError, # appears when an object does not support attribute references or assignments. @@ -229,6 +228,11 @@ def _get_args(self, label): def quote(self, args): return list(map(pipes.quote, args)) + + # This function cmd_env adds the atomic project environment variables within a dictionary (key and value), + # and reassigns some of its values as image and image name. + # The goal here is to return the argument, with expanded environment variables and return new newenv. + def cmd_env(self): newenv = dict(os.environ) newenv['NAME'] = self.name or ""