|
14 | 14 | from .discovery import RegistryInspect, RegistryInspectError |
15 | 15 |
|
16 | 16 |
|
17 | | - |
18 | 17 | def find_repo_tag(d, Id, image_name): |
19 | 18 |
|
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, |
21 | 20 | # returns the name of the image, or image list. |
22 | 21 |
|
23 | 22 | def image_in_repotags(image_name, repotags): |
@@ -124,7 +123,7 @@ def pull(self): |
124 | 123 | prevstatus = status |
125 | 124 | util.write_out("") |
126 | 125 |
|
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, |
128 | 127 | # the exception is thrown to ignore the "pass" problem. |
129 | 128 | # The NameError class handles only unqualified names while AtributeError, |
130 | 129 | # appears when an object does not support attribute references or assignments. |
@@ -229,6 +228,11 @@ def _get_args(self, label): |
229 | 228 | def quote(self, args): |
230 | 229 | return list(map(pipes.quote, args)) |
231 | 230 |
|
| 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 | + |
232 | 236 | def cmd_env(self): |
233 | 237 | newenv = dict(os.environ) |
234 | 238 | newenv['NAME'] = self.name or "" |
|
0 commit comments