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

Allow show ztp to display non-sensitive information visible to non-root user #872

Merged
merged 1 commit into from
Apr 29, 2020

Conversation

rajendra-dendukuri
Copy link
Contributor

Allow show ztp to display non-sensitive information visible to non-root user

Signed-off-by: Rajendra Dendukuri rajendra.dendukuri@broadcom.com

- What I did
Removed user privileges checks. These changes fix #800. The ZTP PR sonic-net/sonic-ztp#13 is also required for these changes to work as expected.

- How I did it
Removed root user check.

- How to verify it
show ztp status

- Previous command output (if the output of a command-line utility has changed)
admin@sonic:~$ show ztp status
Root privileges are required for this operation

- New command output (if the output of a command-line utility has changed)
admin@sonic:~$ show ztp status
ZTP Admin Mode : True
ZTP Service : Processing
ZTP Status : IN-PROGRESS
ZTP Source : local-fs (/host/ztp/ztp_data_local.json)
Runtime : 06m 26s
Timestamp : 2020-04-08 13:08:22 UTC

ZTP Service is active

01-test-plugin: IN-PROGRESS

…ot user

Signed-off-by: Rajendra Dendukuri <rajendra.dendukuri@broadcom.com>
@jleveque jleveque requested a review from lguohan April 9, 2020 01:20
@lguohan lguohan merged commit f6866b0 into sonic-net:master Apr 29, 2020
abdosi pushed a commit to abdosi/sonic-utilities that referenced this pull request Aug 4, 2020
…ot user (sonic-net#872)

Removed user privileges checks. These changes fix sonic-net#800. The ZTP PR sonic-net/sonic-ztp#13 is also required for these changes to work as expected.

```
admin@sonic:~$ show ztp status
ZTP Admin Mode : True
ZTP Service : Processing
ZTP Status : IN-PROGRESS
ZTP Source : local-fs (/host/ztp/ztp_data_local.json)
Runtime : 06m 26s
Timestamp : 2020-04-08 13:08:22 UTC

ZTP Service is active

01-test-plugin: IN-PROGRESS
```

Signed-off-by: Rajendra Dendukuri <rajendra.dendukuri@broadcom.com>
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.

make ztp to have non-sensitive information only visible to non-root user
2 participants