Skip to content

Commit

Permalink
Merge #1161
Browse files Browse the repository at this point in the history
1161: [launch] do not require a TTY for --cloud-init via stdin r=ricab a=Saviq



Co-authored-by: Michał Sawicz <[email protected]>
  • Loading branch information
bors[bot] and Saviq committed Oct 31, 2019
1 parent a052e70 commit 474f2d5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/platform/console/terminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ bool mp::Terminal::is_live() const

std::string mp::Terminal::read_all_cin()
{
if (!cin_is_live())
{
throw std::runtime_error("cannot read from stdin without a TTY");
}

std::string content;
char arr[1024];
while (!cin().eof())
Expand Down

1 comment on commit 474f2d5

@multipass-ci-bot
Copy link
Collaborator

@multipass-ci-bot multipass-ci-bot commented on 474f2d5 Nov 4, 2019

Choose a reason for hiding this comment

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

macOS build available: multipass-0.9.0+mac-Darwin.pkg
Snap build available: snap refresh multipass --channel beta/0.9 or multipass_0.9.0_amd64.snap
Windows build available: multipass-0.9.0+win-win64.exe

Please sign in to comment.