Skip to content

Commit 4a7bbae

Browse files
authored
Merge pull request #35 from stat-kwon/master
Remove max_length option in Changed schema
2 parents 46fe769 + 35bdb87 commit 4a7bbae

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/cloudforet/cost_analysis/manager/cost_manager.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ def _make_cost_data(self, results):
5151

5252
self._check_required_fields(result)
5353

54-
result['additional_info']['Account'] = result.get('account')
55-
5654
try:
5755
data = {
5856
'cost': result['cost'],

src/cloudforet/cost_analysis/model/job_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from schematics.models import Model
2-
from schematics.types import ListType, DateTimeType, StringType
2+
from schematics.types import ListType, StringType
33
from schematics.types.compound import ModelType
44

55
__all__ = ['Tasks']
@@ -14,8 +14,8 @@ class Task(Model):
1414

1515

1616
class Changed(Model):
17-
start = StringType(required=True, max_length=7)
18-
end = StringType(default=None, max_length=7)
17+
start = StringType(required=True)
18+
end = StringType(default=None)
1919

2020

2121
class Tasks(Model):

0 commit comments

Comments
 (0)