Toggle navigation
Toggle navigation
This project
Loading...
Sign in
서승완
/
kappa
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Mitch Garnaat
2015-10-29 20:38:31 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6dda9108ee4ae1a6d9c1ddd21b79f4e2cd974dcc
6dda9108
1 parent
d7cd421b
Fixing some typos and silly bugs.
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
kappa/function.py
kappa/policy.py
requirements.txt
setup.py
kappa/function.py
View file @
6dda910
...
...
@@ -224,7 +224,7 @@ class Function(object):
return
self
.
create
()
def
publish_version
(
self
,
description
):
LOG
.
debug
(
'publishing version of '
,
self
.
name
)
LOG
.
debug
(
'publishing version of
%
s
'
,
self
.
name
)
try
:
response
=
self
.
_lambda_client
.
call
(
'publish_version'
,
...
...
@@ -237,7 +237,7 @@ class Function(object):
return
response
[
'Version'
]
def
list_versions
(
self
):
LOG
.
debug
(
'listing versions of '
,
self
.
name
)
LOG
.
debug
(
'listing versions of
%
s
'
,
self
.
name
)
try
:
response
=
self
.
_lambda_client
.
call
(
'list_versions_by_function'
,
...
...
@@ -263,7 +263,7 @@ class Function(object):
LOG
.
exception
(
'Unable to create alias'
)
def
list_aliases
(
self
):
LOG
.
debug
(
'listing aliases of '
,
self
.
name
)
LOG
.
debug
(
'listing aliases of
%
s
'
,
self
.
name
)
try
:
response
=
self
.
_lambda_client
.
call
(
'list_aliases'
,
...
...
kappa/policy.py
View file @
6dda910
...
...
@@ -131,9 +131,8 @@ class Policy(object):
m
=
hashlib
.
md5
()
m
.
update
(
document
)
policy_md5
=
m
.
hexdigest
()
LOG
.
debug
(
'policy_md5: {}'
.
format
(
policy_md5
))
LOG
.
debug
(
'cache md5: {}'
.
format
(
self
.
_context
.
cache
.
get
(
'policy_md5'
)))
LOG
.
debug
(
'policy_md5:
%
s'
,
policy_md5
)
LOG
.
debug
(
'cache md5:
%
s'
,
self
.
_context
.
cache
.
get
(
'policy_md5'
))
if
policy_md5
!=
self
.
_context
.
cache
.
get
(
'policy_md5'
):
self
.
_context
.
cache
[
'policy_md5'
]
=
policy_md5
self
.
_context
.
save_cache
()
...
...
requirements.txt
View file @
6dda910
boto3
=
=1.2.0
boto3
>
=1.2.0
click==5.1
PyYAML>=3.11
mock>=1.0.1
...
...
setup.py
View file @
6dda910
...
...
@@ -5,7 +5,7 @@ from setuptools import setup, find_packages
import
os
requires
=
[
'boto3
=
=1.2.0'
,
'boto3
>
=1.2.0'
,
'click>=5.0'
,
'PyYAML>=3.11'
]
...
...
Please
register
or
login
to post a comment