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

Commit

Permalink
Some corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
scovl committed Apr 16, 2018
1 parent eb3b061 commit f22d27f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Atomic/atomic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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 ""
Expand Down

1 comment on commit f22d27f

@scovl
Copy link
Author

@scovl scovl commented on f22d27f Apr 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tips, Sir.

Please sign in to comment.