Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean orphan args #103

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions amicleaner/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
import sys

from amicleaner import __version__
from .core import AMICleaner, OrphanSnapshotCleaner
from .fetch import Fetcher
from .resources.config import MAPPING_KEY, MAPPING_VALUES, EXCLUDED_MAPPING_VALUES
from .resources.config import TERM
from .utils import Printer, parse_args
from core import AMICleaner, OrphanSnapshotCleaner
from fetch import Fetcher
from resources.config import MAPPING_KEY, MAPPING_VALUES, EXCLUDED_MAPPING_VALUES
from resources.config import TERM
from utils import Printer, parse_args


class App(object):
Expand Down
6 changes: 3 additions & 3 deletions amicleaner/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from botocore.exceptions import ClientError
from botocore.config import Config

from .resources.config import BOTO3_RETRIES
from .resources.models import AMI
from resources.config import BOTO3_RETRIES
from resources.models import AMI

from datetime import datetime

Expand All @@ -30,7 +30,7 @@ def get_snapshots_filter(self):
]}, {
'Name': 'description',
'Values': [
'Created by CreateImage*'
'Created by CreateImage*','','Copied for DestinationAmi*'
]
}]

Expand Down
4 changes: 2 additions & 2 deletions amicleaner/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from builtins import object
import boto3
from botocore.config import Config
from .resources.config import BOTO3_RETRIES
from .resources.models import AMI
from resources.config import BOTO3_RETRIES
from resources.models import AMI


class Fetcher(object):
Expand Down
2 changes: 1 addition & 1 deletion amicleaner/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from prettytable import PrettyTable

from .resources.config import KEEP_PREVIOUS, AMI_MIN_DAYS
from resources.config import KEEP_PREVIOUS, AMI_MIN_DAYS


class Printer(object):
Expand Down