Skip to content

Conversation

@jwalzer
Copy link

@jwalzer jwalzer commented Jul 5, 2017

This patch makes it possible, to also see the tags and attributes per prefix, when doing an nipap-cli address list

Feedback wanted

This patch makes it possible, to also see the tags and attributes per prefix, when doing an ```nipap-cli address list```

Feedback wanted
col_data['avps'] = '-'
if len(p.avps) > 0:
col_data['avps'] = ', '.join('{}:{}'.format(key,value) for key,value in sorted(p.avps.items()))

Choose a reason for hiding this comment

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

blank line contains whitespace


col_data['avps'] = '-'
if len(p.avps) > 0:
col_data['avps'] = ', '.join('{}:{}'.format(key,value) for key,value in sorted(p.avps.items()))

Choose a reason for hiding this comment

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

missing whitespace after ','
line too long (115 > 79 characters)

col_data['tags'] = '#%d' % len(p.tags)

col_data['tags'] = ','.join(p.tags)

Choose a reason for hiding this comment

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

blank line contains whitespace

'added': { 'title': 'Added' },
'alarm_priority': { 'title': 'Alarm Prio' },
'authoritative_source': { 'title': 'Auth source' },
'avps':{ 'title': 'extra-attributes'},

Choose a reason for hiding this comment

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

missing whitespace after ':'
whitespace after '{'

This commit is for cleanup of the nits found when automatically checking the Merge-Request

col_data['avps'] = '-'
if len(p.avps) > 0:
col_data['avps'] = ','.join('{}:{}'.format(key, value) for key, value in sorted(p.avps.items()))

Choose a reason for hiding this comment

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

line too long (116 > 79 characters)

col_data['tags'] = ','.join(p.tags)

col_data['avps'] = '-'
if len(p.avps) > 0:

Choose a reason for hiding this comment

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

trailing whitespace

col_data['tags'] = '-'
if len(p.tags) > 0:
col_data['tags'] = '#%d' % len(p.tags)
if len(p.tags) > 0:

Choose a reason for hiding this comment

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

trailing whitespace

'added': { 'title': 'Added' },
'alarm_priority': { 'title': 'Alarm Prio' },
'authoritative_source': { 'title': 'Auth source' },
'avps':{ 'title': 'Extra-Attributes' },

Choose a reason for hiding this comment

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

missing whitespace after ':'
whitespace after '{'
whitespace before '}'


col_data['avps'] = '-'
if len(p.avps) > 0:
col_data['avps'] = ','.join('{}:{}'.format(key, value) for key, value in sorted(p.avps.items()))

Choose a reason for hiding this comment

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

line too long (116 > 79 characters)

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

Successfully merging this pull request may close these issues.

2 participants