Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

Commit f22d27f

Browse files
committed
Some corrections
1 parent eb3b061 commit f22d27f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Atomic/atomic.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
from .discovery import RegistryInspect, RegistryInspectError
1515

1616

17-
1817
def find_repo_tag(d, Id, image_name):
1918

20-
# The image_in_repotags function fetches the name of the image inside the "repotag" repository, and if it finds,
19+
# The image_in_repotags function fetches the name of the image inside the "repotag" repository, and if found,
2120
# returns the name of the image, or image list.
2221

2322
def image_in_repotags(image_name, repotags):
@@ -124,7 +123,7 @@ def pull(self):
124123
prevstatus = status
125124
util.write_out("")
126125

127-
# If for some reason the NameError or AtributeError class appears in the path,
126+
# If for some reason the NameError or AttributeError class appears in the path,
128127
# the exception is thrown to ignore the "pass" problem.
129128
# The NameError class handles only unqualified names while AtributeError,
130129
# appears when an object does not support attribute references or assignments.
@@ -229,6 +228,11 @@ def _get_args(self, label):
229228
def quote(self, args):
230229
return list(map(pipes.quote, args))
231230

231+
232+
# This function cmd_env adds the atomic project environment variables within a dictionary (key and value),
233+
# and reassigns some of its values as image and image name.
234+
# The goal here is to return the argument, with expanded environment variables and return new newenv.
235+
232236
def cmd_env(self):
233237
newenv = dict(os.environ)
234238
newenv['NAME'] = self.name or ""

0 commit comments

Comments
 (0)