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

Shaper write fails for integer values #46

Open
Aliaksei-Tatarynchyk opened this issue Jun 5, 2019 · 0 comments
Open

Shaper write fails for integer values #46

Aliaksei-Tatarynchyk opened this issue Jun 5, 2019 · 0 comments

Comments

@Aliaksei-Tatarynchyk
Copy link
Collaborator

yaml file:

test.properties:
  prop: 12345

Error is

18:07:14       [exec] Traceback (most recent call last):
18:07:14       [exec]   File "/usr/local/bin/shaper", line 10, in <module>
18:07:14       [exec]     sys.exit(main())
18:07:14       [exec]   File "/usr/local/lib/python2.7/site-packages/shaper/cli.py", line 161, in main
18:07:14       [exec]     manager.write_properties(datastructure, arguments.out)
18:07:14       [exec]   File "/usr/local/lib/python2.7/site-packages/shaper/manager.py", line 53, in write_properties
18:07:14       [exec]     os.path.join(directories, property_file),
18:07:14       [exec]   File "/usr/local/lib/python2.7/site-packages/shaper/libs/parser.py", line 102, in write
18:07:14       [exec]     parser_class().write(data, path)
18:07:14       [exec]   File "/usr/local/lib/python2.7/site-packages/shaper/libs/parser.py", line 316, in write
18:07:14       [exec]     '{}={}'.format(item[0], self._process_multiline_string(item[1])) for item in data.items()
18:07:14       [exec]   File "/usr/local/lib/python2.7/site-packages/shaper/libs/parser.py", line 316, in <genexpr>
18:07:14       [exec]     '{}={}'.format(item[0], self._process_multiline_string(item[1])) for item in data.items()
18:07:14       [exec]   File "/usr/local/lib/python2.7/site-packages/shaper/libs/parser.py", line 269, in _process_multiline_string
18:07:14       [exec]     string_splitted = string.splitlines()
18:07:14       [exec] AttributeError: 'int' object has no attribute 'splitlines'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant